summaryrefslogtreecommitdiffstats
path: root/nms-patches/JsonList.patch
blob: 54c573958b8312249bca9d82df4510c4eca82cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@@ -79,6 +79,12 @@
     public String[] getEntries() {
         return (String[]) this.d.keySet().toArray(new String[this.d.size()]);
     }
+ 
+    // CraftBukkit start
+    public Collection<JsonListEntry> getValues() {
+        return this.d.values();
+    }
+    // CraftBukkit end
 
     public boolean isEmpty() {
         return this.d.size() < 1;
@@ -122,7 +128,7 @@
         return this.d;
     }
 
-    public void save() {
+    public void save() throws IOException { // CraftBukkit - Added throws
         Collection collection = this.d.values();
         String s = this.b.toJson(collection);
         BufferedWriter bufferedwriter = null;
@@ -136,7 +142,7 @@
 
     }
 
-    public void load() {
+    public void load() throws IOException { // CraftBukkit - Added throws
         Collection collection = null;
         BufferedReader bufferedreader = null;