mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
Update Trees.java
This commit is contained in:
@@ -11,18 +11,18 @@ public enum Trees {
|
|||||||
MAPLE("Maple", new int[]{1307});
|
MAPLE("Maple", new int[]{1307});
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
private int[] trees;
|
private int[] ids;
|
||||||
|
|
||||||
Trees(String name, int[] trees) {
|
Trees(String name, int[] ids) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.trees = trees;
|
this.ids = ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String[] toStringArray() {
|
public static String[] toStringArray() {
|
||||||
List<Trees> enumList = Arrays.asList(Trees.values());
|
List<Trees> enumList = Arrays.asList(Trees.values());
|
||||||
List<String> locationsArray = new ArrayList<>();
|
List<String> locationsArray = new ArrayList<>();
|
||||||
for (Trees tree : enumList) {
|
for (Trees obj : enumList) {
|
||||||
locationsArray.add(tree.name);
|
locationsArray.add(obj.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] simpleArray = new String[ locationsArray.size() ];
|
String[] simpleArray = new String[ locationsArray.size() ];
|
||||||
@@ -31,6 +31,6 @@ public enum Trees {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int[] getIDs() {
|
public int[] getIDs() {
|
||||||
return this.trees;
|
return this.ids;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user