Package com.mojang.realmsclient.util
Class JsonUtils
java.lang.Object
com.mojang.realmsclient.util.JsonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getBooleanOr
(String pKey, com.google.gson.JsonObject pJson, boolean pDefaultValue) static Date
static int
static long
static <T> T
getOptional
(String pKey, com.google.gson.JsonObject pJson, Function<com.google.gson.JsonObject, T> pOutput) static <T> T
getRequired
(String pKey, com.google.gson.JsonObject pJson, Function<com.google.gson.JsonObject, T> pOutput) static String
getRequiredString
(String pKey, com.google.gson.JsonObject pJson) static String
getRequiredStringOr
(String pKey, com.google.gson.JsonObject pJson, String pDefaultValue) static String
getStringOr
(String pKey, com.google.gson.JsonObject pJson, String pDefaultValue) static UUID
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
getRequired
-
getOptional
-
getRequiredString
-
getRequiredStringOr
-
getStringOr
-
getUuidOr
-
getIntOr
-
getLongOr
-
getBooleanOr
public static boolean getBooleanOr(String pKey, com.google.gson.JsonObject pJson, boolean pDefaultValue) -
getDateOr
-