End portals storage
This commit is contained in:
parent
fb7cee1889
commit
ee4c4aed73
3 changed files with 118 additions and 0 deletions
|
@ -69,6 +69,11 @@ public class JsonFactory {
|
|||
}
|
||||
}
|
||||
|
||||
public static int getInt(JsonObject object, String member, int def) {
|
||||
JsonElement elem = object.get(member);
|
||||
return elem == null ? def : elem.getAsInt();
|
||||
}
|
||||
|
||||
public static float getFloat(JsonObject object, String member, float def) {
|
||||
JsonElement elem = object.get(member);
|
||||
return elem == null ? def : elem.getAsFloat();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue