net.minecraft.util

public class JsonUtils

pu
net.minecraft.class_2145
net.minecraft.util.JsonUtils
net.minecraft.util.JsonUtils

Method summary

Modifier and TypeMethod
public static boolean
d(com.google.gson.JsonObject arg0, String arg1)
method_8317(com.google.gson.JsonObject arg0, String arg1)
hasJsonArray(com.google.gson.JsonObject json, String key)
jsonObjectFieldTypeIsArray(com.google.gson.JsonObject arg0, String arg1)
public static boolean
g(com.google.gson.JsonObject arg0, String arg1)
method_8320(com.google.gson.JsonObject arg0, String arg1)
hasElement(com.google.gson.JsonObject json, String key)
jsonObjectHasNamedField(com.google.gson.JsonObject arg0, String arg1)
public static String
a(com.google.gson.JsonElement arg0, String arg1)
method_8306(com.google.gson.JsonElement arg0, String arg1)
asString(com.google.gson.JsonElement element, String key)
getJsonElementStringValue(com.google.gson.JsonElement arg0, String arg1)
public static String
h(com.google.gson.JsonObject arg0, String arg1)
method_8321(com.google.gson.JsonObject arg0, String arg1)
getString(com.google.gson.JsonObject json, String key)
getJsonObjectStringFieldValue(com.google.gson.JsonObject arg0, String arg1)
public static int
f(com.google.gson.JsonElement arg0, String arg1)
method_8318(com.google.gson.JsonElement arg0, String arg1)
asInteger(com.google.gson.JsonElement element, String key)
getJsonElementIntegerValue(com.google.gson.JsonElement arg0, String arg1)
public static int
m(com.google.gson.JsonObject arg0, String arg1)
method_8326(com.google.gson.JsonObject arg0, String arg1)
getInteger(com.google.gson.JsonObject json, String key)
getJsonObjectIntegerFieldValue(com.google.gson.JsonObject arg0, String arg1)
public static com.google.gson.JsonObject
l(com.google.gson.JsonElement arg0, String arg1)
method_8324(com.google.gson.JsonElement arg0, String arg1)
asJsonObject(com.google.gson.JsonElement element, String key)
getElementAsJsonObject(com.google.gson.JsonElement arg0, String arg1)
public static com.google.gson.JsonArray
m(com.google.gson.JsonElement arg0, String arg1)
method_8325(com.google.gson.JsonElement arg0, String arg1)
asJsonArray(com.google.gson.JsonElement element, String key)
getJsonElementAsJsonArray(com.google.gson.JsonElement arg0, String arg1)
public static com.google.gson.JsonArray
t(com.google.gson.JsonObject arg0, String arg1)
method_8328(com.google.gson.JsonObject arg0, String arg1)
getJsonArray(com.google.gson.JsonObject json, String key)
getJsonObjectJsonArrayField(com.google.gson.JsonObject arg0, String arg1)
public static String
d(com.google.gson.JsonElement arg0)
method_8315(com.google.gson.JsonElement arg0)
getType(com.google.gson.JsonElement element)
getJsonElementTypeDescription(com.google.gson.JsonElement arg0)
public static boolean
a(com.google.gson.JsonObject arg0, String arg1)
method_8307(com.google.gson.JsonObject arg0, String arg1)
hasString(com.google.gson.JsonObject json, String key)
jsonObjectFieldTypeIsString(com.google.gson.JsonObject arg0, String arg1)
public static boolean
a(com.google.gson.JsonElement arg0)
method_8305(com.google.gson.JsonElement arg0)
isString(com.google.gson.JsonElement element)
jsonElementTypeIsString(com.google.gson.JsonElement arg0)
public static boolean
f(com.google.gson.JsonObject arg0, String arg1)
method_8319(com.google.gson.JsonObject arg0, String arg1)
hasJsonPrimitive(com.google.gson.JsonObject json, String key)
jsonObjectFieldTypeIsPrimitive(com.google.gson.JsonObject arg0, String arg1)
public static String
a(com.google.gson.JsonObject arg0, String arg1, String arg2)
method_8312(com.google.gson.JsonObject arg0, String arg1, String arg2)
getStringOrDefault(com.google.gson.JsonObject json, String key, String defaultValue)
getJsonObjectStringFieldValueOrDefault(com.google.gson.JsonObject arg0, String arg1, String arg2)
public static boolean
b(com.google.gson.JsonElement arg0, String arg1)
method_8314(com.google.gson.JsonElement arg0, String arg1)
asBoolean(com.google.gson.JsonElement element, String key)
getJsonElementBooleanValue(com.google.gson.JsonElement arg0, String arg1)
public static boolean
i(com.google.gson.JsonObject arg0, String arg1)
method_8322(com.google.gson.JsonObject arg0, String arg1)
getBoolean(com.google.gson.JsonObject json, String key)
getJsonObjectBooleanFieldValue(com.google.gson.JsonObject arg0, String arg1)
public static boolean
a(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
method_8313(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
getBooleanOrDefault(com.google.gson.JsonObject json, String key, boolean defaultValue)
getJsonObjectBooleanFieldValueOrDefault(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
public static float
d(com.google.gson.JsonElement arg0, String arg1)
method_8316(com.google.gson.JsonElement arg0, String arg1)
asFloat(com.google.gson.JsonElement element, String key)
getJsonElementFloatValue(com.google.gson.JsonElement arg0, String arg1)
public static float
k(com.google.gson.JsonObject arg0, String arg1)
method_8323(com.google.gson.JsonObject arg0, String arg1)
getFloat(com.google.gson.JsonObject json, String key)
getJsonObjectFloatFieldValue(com.google.gson.JsonObject arg0, String arg1)
public static float
a(com.google.gson.JsonObject arg0, String arg1, float arg2)
method_8308(com.google.gson.JsonObject arg0, String arg1, float arg2)
getFloatOrDefault(com.google.gson.JsonObject json, String key, float defaultValue)
getJsonObjectFloatFieldValueOrDefault(com.google.gson.JsonObject arg0, String arg1, float arg2)
public static int
a(com.google.gson.JsonObject arg0, String arg1, int arg2)
method_8309(com.google.gson.JsonObject arg0, String arg1, int arg2)
getIntegerOrDefault(com.google.gson.JsonObject json, String key, int defaultValue)
getJsonObjectIntegerFieldValueOrDefault(com.google.gson.JsonObject arg0, String arg1, int arg2)
public static com.google.gson.JsonObject
s(com.google.gson.JsonObject arg0, String arg1)
method_8327(com.google.gson.JsonObject arg0, String arg1)
getJsonObject(com.google.gson.JsonObject json, String key)
getJsonObject(com.google.gson.JsonObject base, String key)
public static com.google.gson.JsonObject
a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonObject arg2)
method_8311(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonObject arg2)
getJsonObjectOrDefault(com.google.gson.JsonObject json, String key, com.google.gson.JsonObject defaultValue)
getJsonObjectFieldOrDefault(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonObject arg2)
public static com.google.gson.JsonArray
a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonArray arg2)
method_8310(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonArray arg2)
getJsonArrayOrDefault(com.google.gson.JsonObject json, String key, com.google.gson.JsonArray defaultValue)
getJsonObjectJsonArrayFieldOrDefault(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonArray arg2)