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 key, com.google.gson.JsonObject json, boolean defaultValue) static Date
static int
static long
static <T> T
getOptional
(String key, com.google.gson.JsonObject json, Function<com.google.gson.JsonObject, T> output) static <T> T
getRequired
(String key, com.google.gson.JsonObject json, Function<com.google.gson.JsonObject, T> output) static String
getRequiredString
(String key, com.google.gson.JsonObject json) static String
getRequiredStringOr
(String key, com.google.gson.JsonObject json, String defaultValue) static String
getStringOr
(String key, com.google.gson.JsonObject json, String defaultValue) static UUID
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
getRequired
-
getOptional
-
getRequiredString
-
getRequiredStringOr
-
getStringOr
-
getUuidOr
-
getIntOr
-
getLongOr
-
getBooleanOr
public static boolean getBooleanOr(String key, com.google.gson.JsonObject json, boolean defaultValue) -
getDateOr
-