net.minecraft.util

public class JsonUtils

xj
net.minecraft.class_2145
net.minecraft.util.JsonUtils
net.minecraft.util.JsonUtils
net.minecraft.util.JsonUtils

Field summary

Modifier and TypeField
private static final com.google.gson.Gson
a
field_22245
GSON
field_212747_a
field_212747_a

Method summary

Modifier and TypeMethod
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)
func_151205_a(com.google.gson.JsonObject arg0, String arg1)
isString(com.google.gson.JsonObject json, String memberName)
public static boolean
b(com.google.gson.JsonElement arg0)
method_12874(com.google.gson.JsonElement arg0)
isNumber(com.google.gson.JsonElement element)
func_188175_b(com.google.gson.JsonElement arg0)
isNumber(com.google.gson.JsonElement json)
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)
func_151202_d(com.google.gson.JsonObject arg0, String arg1)
isJsonArray(com.google.gson.JsonObject json, String memberName)
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)
func_151201_f(com.google.gson.JsonObject arg0, String arg1)
isJsonPrimitive(com.google.gson.JsonObject json, String memberName)
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)
func_151204_g(com.google.gson.JsonObject arg0, String arg1)
hasField(com.google.gson.JsonObject json, String memberName)
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)
func_151206_a(com.google.gson.JsonElement arg0, String arg1)
getString(com.google.gson.JsonElement json, String memberName)
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)
func_151200_h(com.google.gson.JsonObject arg0, String arg1)
getString(com.google.gson.JsonObject json, String memberName)
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)
func_151219_a(com.google.gson.JsonObject arg0, String arg1, String arg2)
getString(com.google.gson.JsonObject json, String memberName, String fallback)
public static Item
b(com.google.gson.JsonElement arg0, String arg1)
method_12875(com.google.gson.JsonElement arg0, String arg1)
asItem(com.google.gson.JsonElement element, String key)
func_188172_b(com.google.gson.JsonElement arg0, String arg1)
getItem(com.google.gson.JsonElement json, String memberName)
public static Item
i(com.google.gson.JsonObject arg0, String arg1)
method_12876(com.google.gson.JsonObject arg0, String arg1)
getItem(com.google.gson.JsonObject json, String key)
func_188180_i(com.google.gson.JsonObject arg0, String arg1)
getItem(com.google.gson.JsonObject json, String memberName)
public static boolean
c(com.google.gson.JsonElement arg0, String arg1)
method_8314(com.google.gson.JsonElement arg0, String arg1)
asBoolean(com.google.gson.JsonElement element, String key)
func_151216_b(com.google.gson.JsonElement arg0, String arg1)
getBoolean(com.google.gson.JsonElement json, String memberName)
public static boolean
j(com.google.gson.JsonObject arg0, String arg1)
method_8322(com.google.gson.JsonObject arg0, String arg1)
getBoolean(com.google.gson.JsonObject json, String key)
func_151212_i(com.google.gson.JsonObject arg0, String arg1)
getBoolean(com.google.gson.JsonObject json, String memberName)
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)
func_151209_a(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
getBoolean(com.google.gson.JsonObject json, String memberName, boolean fallback)
public static float
e(com.google.gson.JsonElement arg0, String arg1)
method_8316(com.google.gson.JsonElement arg0, String arg1)
asFloat(com.google.gson.JsonElement element, String key)
func_151220_d(com.google.gson.JsonElement arg0, String arg1)
getFloat(com.google.gson.JsonElement json, String memberName)
public static float
l(com.google.gson.JsonObject arg0, String arg1)
method_8323(com.google.gson.JsonObject arg0, String arg1)
getFloat(com.google.gson.JsonObject json, String key)
func_151217_k(com.google.gson.JsonObject arg0, String arg1)
getFloat(com.google.gson.JsonObject json, String memberName)
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)
func_151221_a(com.google.gson.JsonObject arg0, String arg1, float arg2)
getFloat(com.google.gson.JsonObject json, String memberName, float fallback)
public static int
g(com.google.gson.JsonElement arg0, String arg1)
method_8318(com.google.gson.JsonElement arg0, String arg1)
asInteger(com.google.gson.JsonElement element, String key)
func_151215_f(com.google.gson.JsonElement arg0, String arg1)
getInt(com.google.gson.JsonElement json, String memberName)
public static int
n(com.google.gson.JsonObject arg0, String arg1)
method_8326(com.google.gson.JsonObject arg0, String arg1)
getInteger(com.google.gson.JsonObject json, String key)
func_151203_m(com.google.gson.JsonObject arg0, String arg1)
getInt(com.google.gson.JsonObject json, String memberName)
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)
func_151208_a(com.google.gson.JsonObject arg0, String arg1, int arg2)
getInt(com.google.gson.JsonObject json, String memberName, int fallback)
public static byte
h(com.google.gson.JsonElement arg0, String arg1)
method_21504(com.google.gson.JsonElement arg0, String arg1)
m_59240335(com.google.gson.JsonElement arg0, String arg1)
func_204332_h(com.google.gson.JsonElement arg0, String arg1)
getByte(com.google.gson.JsonElement json, String memberName)
public static byte
o(com.google.gson.JsonObject arg0, String arg1)
method_21505(com.google.gson.JsonObject arg0, String arg1)
m_22820545(com.google.gson.JsonObject arg0, String arg1)
func_204331_o(com.google.gson.JsonObject arg0, String arg1)
getByte(com.google.gson.JsonObject json, String memberName)
public static com.google.gson.JsonObject
m(com.google.gson.JsonElement arg0, String arg1)
method_8324(com.google.gson.JsonElement arg0, String arg1)
asJsonObject(com.google.gson.JsonElement element, String key)
func_151210_l(com.google.gson.JsonElement arg0, String arg1)
getJsonObject(com.google.gson.JsonElement json, String memberName)
public static com.google.gson.JsonObject
t(com.google.gson.JsonObject arg0, String arg1)
method_8327(com.google.gson.JsonObject arg0, String arg1)
getJsonObject(com.google.gson.JsonObject json, String key)
func_152754_s(com.google.gson.JsonObject arg0, String arg1)
getJsonObject(com.google.gson.JsonObject json, String memberName)
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)
func_151218_a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonObject arg2)
getJsonObject(com.google.gson.JsonObject json, String memberName, com.google.gson.JsonObject fallback)
public static com.google.gson.JsonArray
n(com.google.gson.JsonElement arg0, String arg1)
method_8325(com.google.gson.JsonElement arg0, String arg1)
asJsonArray(com.google.gson.JsonElement element, String key)
func_151207_m(com.google.gson.JsonElement arg0, String arg1)
getJsonArray(com.google.gson.JsonElement json, String memberName)
public static com.google.gson.JsonArray
u(com.google.gson.JsonObject arg0, String arg1)
method_8328(com.google.gson.JsonObject arg0, String arg1)
getJsonArray(com.google.gson.JsonObject json, String key)
func_151214_t(com.google.gson.JsonObject arg0, String arg1)
getJsonArray(com.google.gson.JsonObject json, String memberName)
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)
func_151213_a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonArray arg2)
getJsonArray(com.google.gson.JsonObject json, String memberName, com.google.gson.JsonArray fallback)
public static <T> T
a(com.google.gson.JsonElement arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
method_12871(com.google.gson.JsonElement arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
deserialize(com.google.gson.JsonElement element, String key, com.google.gson.JsonDeserializationContext context, Class<? extends T> type)
func_188179_a(com.google.gson.JsonElement arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
deserializeClass(com.google.gson.JsonElement json, String memberName, com.google.gson.JsonDeserializationContext context, Class<? extends T> adapter)
public static <T> T
a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
method_12872(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
deserialize(com.google.gson.JsonObject json, String key, com.google.gson.JsonDeserializationContext context, Class<? extends T> type)
func_188174_a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
deserializeClass(com.google.gson.JsonObject json, String memberName, com.google.gson.JsonDeserializationContext context, Class<? extends T> adapter)
public static <T> T
a(com.google.gson.JsonObject arg0, String arg1, T arg2, com.google.gson.JsonDeserializationContext arg3, Class<? extends T> arg4)
method_12873(com.google.gson.JsonObject arg0, String arg1, T arg2, com.google.gson.JsonDeserializationContext arg3, Class<? extends T> arg4)
deserializeOrDefault(com.google.gson.JsonObject json, String key, T defaultValue, com.google.gson.JsonDeserializationContext context, Class<? extends T> type)
func_188177_a(com.google.gson.JsonObject arg0, String arg1, T arg2, com.google.gson.JsonDeserializationContext arg3, Class<? extends T> arg4)
deserializeClass(com.google.gson.JsonObject json, String memberName, T fallback, com.google.gson.JsonDeserializationContext context, Class<? extends T> adapter)
public static String
d(com.google.gson.JsonElement arg0)
method_8315(com.google.gson.JsonElement arg0)
getType(com.google.gson.JsonElement element)
func_151222_d(com.google.gson.JsonElement arg0)
toString(com.google.gson.JsonElement json)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
method_12868(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
fromJson(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient)
func_188173_a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
fromJson(com.google.gson.Gson gsonIn, Reader readerIn, Class<T> adapter, boolean lenient)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Type arg2, boolean arg3)
method_15019(com.google.gson.Gson arg0, Reader arg1, Type arg2, boolean arg3)
fromJson(com.google.gson.Gson gson, Reader reader, Type type, boolean lenient)
func_193838_a(com.google.gson.Gson arg0, Reader arg1, Type arg2, boolean arg3)
fromJson(com.google.gson.Gson gson, Reader reader, Type type, boolean lenient)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
method_12870(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
fromJson(com.google.gson.Gson gson, String s, Class<T> type, boolean lenient)
func_188176_a(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
fromJson(com.google.gson.Gson gsonIn, String json, Class<T> adapter, boolean lenient)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Type arg2)
method_15018(com.google.gson.Gson arg0, Reader arg1, Type arg2)
fromJson(com.google.gson.Gson gson, Reader reader, Type type)
func_193841_a(com.google.gson.Gson arg0, Reader arg1, Type arg2)
fromJson(com.google.gson.Gson gson, Reader reader, Type type)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
method_12869(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
fromJson(com.google.gson.Gson gson, String s, Class<T> type)
func_188178_a(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
fromJson(com.google.gson.Gson gsonIn, String json, Class<T> adapter)
public static com.google.gson.JsonObject
a(String arg0, boolean arg1)
method_21503(String arg0, boolean arg1)
getJsonObject(String s, boolean lenient)
func_212746_a(String arg0, boolean arg1)
fromJson(String arg0, boolean arg1)
public static com.google.gson.JsonObject
a(Reader arg0, boolean arg1)
method_21501(Reader arg0, boolean arg1)
getJsonObject(Reader reader, boolean lenient)
func_212744_a(Reader arg0, boolean arg1)
fromJson(Reader arg0, boolean arg1)
public static com.google.gson.JsonObject
a(String arg0)
method_21502(String arg0)
getJsonObject(String s)
func_212745_a(String arg0)
fromJson(String arg0)
public static com.google.gson.JsonObject
a(Reader arg0)
method_21500(Reader arg0)
getJsonObject(Reader reader)
func_212743_a(Reader arg0)
fromJson(Reader arg0)
public static boolean
a(com.google.gson.JsonElement arg0)
method_8305(com.google.gson.JsonElement arg0)
isString(com.google.gson.JsonElement element)
func_151211_a(com.google.gson.JsonElement arg0)
isString(com.google.gson.JsonElement json)
public static boolean
c(com.google.gson.JsonObject arg0, String arg1)
method_10834(com.google.gson.JsonObject arg0, String arg1)
hasBoolean(com.google.gson.JsonObject json, String key)
func_180199_c(com.google.gson.JsonObject arg0, String arg1)
isBoolean(com.google.gson.JsonObject json, String memberName)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, Type arg2, boolean arg3)
method_15021(com.google.gson.Gson arg0, String arg1, Type arg2, boolean arg3)
fromJson(com.google.gson.Gson gson, String s, Type type, boolean lenient)
func_193837_a(com.google.gson.Gson arg0, String arg1, Type arg2, boolean arg3)
fromJson(com.google.gson.Gson gson, String json, Type type, boolean lenient)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, Type arg2)
method_15020(com.google.gson.Gson arg0, String arg1, Type arg2)
fromJson(com.google.gson.Gson gson, String s, Type type)
func_193840_a(com.google.gson.Gson arg0, String arg1, Type arg2)
fromJson(com.google.gson.Gson gson, String json, Type type)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
method_15017(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
fromJson(com.google.gson.Gson gson, Reader reader, Class<T> type)
func_193839_a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
fromJson(com.google.gson.Gson gson, Reader reader, Class<T> jsonClass)