net.minecraft.util

public class JsonUtils

zm
net.minecraft.class_3518
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_15657
GSON
field_212747_a
field_212747_a

Method summary

Modifier and TypeMethod
public static boolean
a(com.google.gson.JsonObject arg0, String arg1)
method_15289(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_15275(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_15264(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_15278(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_15294(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_15287(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_15265(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_15253(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_15256(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_15288(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_15268(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_15270(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_15258(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_15269(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_15259(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_15277(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 long
f(com.google.gson.JsonElement arg0, String arg1)
method_15263(com.google.gson.JsonElement arg0, String arg1)
m_53608705(com.google.gson.JsonElement arg0, String arg1)
func_219794_f(com.google.gson.JsonElement arg0, String arg1)
func_219794_f(com.google.gson.JsonElement arg0, String arg1)
public static long
a(com.google.gson.JsonObject arg0, String arg1, long arg2)
method_15280(com.google.gson.JsonObject arg0, String arg1, long arg2)
m_58060249(com.google.gson.JsonObject arg0, String arg1, long arg2)
func_219796_a(com.google.gson.JsonObject arg0, String arg1, long arg2)
func_219796_a(com.google.gson.JsonObject arg0, String arg1, long arg2)
public static int
g(com.google.gson.JsonElement arg0, String arg1)
method_15257(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_15260(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_15282(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_15293(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
a(com.google.gson.JsonObject arg0, String arg1, byte arg2)
method_15271(com.google.gson.JsonObject arg0, String arg1, byte arg2)
m_96076146(com.google.gson.JsonObject arg0, String arg1, byte arg2)
func_219795_a(com.google.gson.JsonObject arg0, String arg1, byte arg2)
func_219795_a(com.google.gson.JsonObject arg0, String arg1, byte arg2)
public static com.google.gson.JsonObject
m(com.google.gson.JsonElement arg0, String arg1)
method_15295(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_15296(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_15281(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_15252(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_15261(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_15292(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_15291(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_15272(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_15283(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_15266(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_15267(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_15273(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_15279(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_15297(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_15284(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_15298(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_15274(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_15285(String arg0)
getJsonObject(String s)
func_212745_a(String arg0)
fromJson(String arg0)
public static com.google.gson.JsonObject
a(Reader arg0)
method_15255(Reader arg0)
getJsonObject(Reader reader)
func_212743_a(Reader arg0)
fromJson(Reader arg0)
public static boolean
a(com.google.gson.JsonElement arg0)
method_15286(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_15254(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_15262(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_15290(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_15276(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)