net.minecraft.util

public class GsonHelper

afd
net.minecraft.util.GsonHelper
net.minecraft.class_3518
net.minecraft.util.JsonHelper
net.minecraft.util.JSONUtils
net.minecraft.server.v1_16_R3.ChatDeserializer

Field summary

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

Method summary

Modifier and TypeMethod
public static boolean
a(com.google.gson.JsonObject arg0, String arg1)
isStringValue(com.google.gson.JsonObject arg0, String arg1)
method_15289(com.google.gson.JsonObject arg0, String arg1)
hasString(com.google.gson.JsonObject object, String element)
func_151205_a(com.google.gson.JsonObject arg0, String arg1)
public static boolean
b(com.google.gson.JsonElement arg0)
isNumberValue(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)
public static boolean
d(com.google.gson.JsonObject arg0, String arg1)
isArrayNode(com.google.gson.JsonObject arg0, String arg1)
method_15264(com.google.gson.JsonObject arg0, String arg1)
hasArray(com.google.gson.JsonObject object, String element)
func_151202_d(com.google.gson.JsonObject arg0, String arg1)
public static boolean
f(com.google.gson.JsonObject arg0, String arg1)
isValidPrimitive(com.google.gson.JsonObject arg0, String arg1)
method_15278(com.google.gson.JsonObject arg0, String arg1)
hasPrimitive(com.google.gson.JsonObject object, String element)
func_151201_f(com.google.gson.JsonObject arg0, String arg1)
public static boolean
g(com.google.gson.JsonObject arg0, String arg1)
isValidNode(com.google.gson.JsonObject arg0, String arg1)
method_15294(com.google.gson.JsonObject arg0, String arg1)
hasElement(com.google.gson.JsonObject object, String lement)
func_151204_g(com.google.gson.JsonObject arg0, String arg1)
public static String
a(com.google.gson.JsonElement arg0, String arg1)
convertToString(com.google.gson.JsonElement arg0, String arg1)
method_15287(com.google.gson.JsonElement arg0, String arg1)
asString(com.google.gson.JsonElement element, String name)
func_151206_a(com.google.gson.JsonElement arg0, String arg1)
public static String
h(com.google.gson.JsonObject arg0, String arg1)
getAsString(com.google.gson.JsonObject arg0, String arg1)
method_15265(com.google.gson.JsonObject arg0, String arg1)
getString(com.google.gson.JsonObject object, String element)
func_151200_h(com.google.gson.JsonObject arg0, String arg1)
public static String
a(com.google.gson.JsonObject arg0, String arg1, String arg2)
getAsString(com.google.gson.JsonObject arg0, String arg1, String arg2)
method_15253(com.google.gson.JsonObject arg0, String arg1, String arg2)
getString(com.google.gson.JsonObject object, String element, String defaultStr)
func_151219_a(com.google.gson.JsonObject arg0, String arg1, String arg2)
public static Item
b(com.google.gson.JsonElement arg0, String arg1)
convertToItem(com.google.gson.JsonElement arg0, String arg1)
method_15256(com.google.gson.JsonElement arg0, String arg1)
asItem(com.google.gson.JsonElement element, String name)
func_188172_b(com.google.gson.JsonElement arg0, String arg1)
public static Item
i(com.google.gson.JsonObject arg0, String arg1)
getAsItem(com.google.gson.JsonObject arg0, String arg1)
method_15288(com.google.gson.JsonObject arg0, String arg1)
getItem(com.google.gson.JsonObject object, String key)
func_188180_i(com.google.gson.JsonObject arg0, String arg1)
public static boolean
c(com.google.gson.JsonElement arg0, String arg1)
convertToBoolean(com.google.gson.JsonElement arg0, String arg1)
method_15268(com.google.gson.JsonElement arg0, String arg1)
asBoolean(com.google.gson.JsonElement element, String name)
func_151216_b(com.google.gson.JsonElement arg0, String arg1)
public static boolean
j(com.google.gson.JsonObject arg0, String arg1)
getAsBoolean(com.google.gson.JsonObject arg0, String arg1)
method_15270(com.google.gson.JsonObject arg0, String arg1)
getBoolean(com.google.gson.JsonObject object, String element)
func_151212_i(com.google.gson.JsonObject arg0, String arg1)
public static boolean
a(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
getAsBoolean(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
method_15258(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
getBoolean(com.google.gson.JsonObject object, String element, boolean defaultBoolean)
func_151209_a(com.google.gson.JsonObject arg0, String arg1, boolean arg2)
public static float
e(com.google.gson.JsonElement arg0, String arg1)
convertToFloat(com.google.gson.JsonElement arg0, String arg1)
method_15269(com.google.gson.JsonElement arg0, String arg1)
asFloat(com.google.gson.JsonElement element, String name)
func_151220_d(com.google.gson.JsonElement arg0, String arg1)
public static float
l(com.google.gson.JsonObject arg0, String arg1)
getAsFloat(com.google.gson.JsonObject arg0, String arg1)
method_15259(com.google.gson.JsonObject arg0, String arg1)
getFloat(com.google.gson.JsonObject object, String element)
func_151217_k(com.google.gson.JsonObject arg0, String arg1)
public static float
a(com.google.gson.JsonObject arg0, String arg1, float arg2)
getAsFloat(com.google.gson.JsonObject arg0, String arg1, float arg2)
method_15277(com.google.gson.JsonObject arg0, String arg1, float arg2)
getFloat(com.google.gson.JsonObject object, String element, float defaultFloat)
func_151221_a(com.google.gson.JsonObject arg0, String arg1, float arg2)
public static long
f(com.google.gson.JsonElement arg0, String arg1)
convertToLong(com.google.gson.JsonElement arg0, String arg1)
method_15263(com.google.gson.JsonElement arg0, String arg1)
asLong(com.google.gson.JsonElement element, String name)
func_219794_f(com.google.gson.JsonElement arg0, String arg1)
public static long
m(com.google.gson.JsonObject arg0, String arg1)
getAsLong(com.google.gson.JsonObject arg0, String arg1)
method_22449(com.google.gson.JsonObject arg0, String arg1)
getLong(com.google.gson.JsonObject object, String name)
func_226161_m_(com.google.gson.JsonObject arg0, String arg1)
public static long
a(com.google.gson.JsonObject arg0, String arg1, long arg2)
getAsLong(com.google.gson.JsonObject arg0, String arg1, long arg2)
method_15280(com.google.gson.JsonObject arg0, String arg1, long arg2)
getLong(com.google.gson.JsonObject object, String element, long defaultLong)
func_219796_a(com.google.gson.JsonObject arg0, String arg1, long arg2)
public static int
g(com.google.gson.JsonElement arg0, String arg1)
convertToInt(com.google.gson.JsonElement arg0, String arg1)
method_15257(com.google.gson.JsonElement arg0, String arg1)
asInt(com.google.gson.JsonElement element, String name)
func_151215_f(com.google.gson.JsonElement arg0, String arg1)
public static int
n(com.google.gson.JsonObject arg0, String arg1)
getAsInt(com.google.gson.JsonObject arg0, String arg1)
method_15260(com.google.gson.JsonObject arg0, String arg1)
getInt(com.google.gson.JsonObject object, String element)
func_151203_m(com.google.gson.JsonObject arg0, String arg1)
public static int
a(com.google.gson.JsonObject arg0, String arg1, int arg2)
getAsInt(com.google.gson.JsonObject arg0, String arg1, int arg2)
method_15282(com.google.gson.JsonObject arg0, String arg1, int arg2)
getInt(com.google.gson.JsonObject object, String element, int defaultInt)
func_151208_a(com.google.gson.JsonObject arg0, String arg1, int arg2)
public static byte
h(com.google.gson.JsonElement arg0, String arg1)
convertToByte(com.google.gson.JsonElement arg0, String arg1)
method_15293(com.google.gson.JsonElement arg0, String arg1)
asByte(com.google.gson.JsonElement element, String name)
func_204332_h(com.google.gson.JsonElement arg0, String arg1)
public static byte
a(com.google.gson.JsonObject arg0, String arg1, byte arg2)
getAsByte(com.google.gson.JsonObject arg0, String arg1, byte arg2)
method_15271(com.google.gson.JsonObject arg0, String arg1, byte arg2)
getByte(com.google.gson.JsonObject object, String element, byte defaultByte)
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)
convertToJsonObject(com.google.gson.JsonElement arg0, String arg1)
method_15295(com.google.gson.JsonElement arg0, String arg1)
asObject(com.google.gson.JsonElement element, String name)
func_151210_l(com.google.gson.JsonElement arg0, String arg1)
public static com.google.gson.JsonObject
t(com.google.gson.JsonObject arg0, String arg1)
getAsJsonObject(com.google.gson.JsonObject arg0, String arg1)
method_15296(com.google.gson.JsonObject arg0, String arg1)
getObject(com.google.gson.JsonObject object, String element)
func_152754_s(com.google.gson.JsonObject arg0, String arg1)
public static com.google.gson.JsonObject
a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonObject arg2)
getAsJsonObject(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)
getObject(com.google.gson.JsonObject object, String element, com.google.gson.JsonObject defaultObject)
func_151218_a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonObject arg2)
public static com.google.gson.JsonArray
n(com.google.gson.JsonElement arg0, String arg1)
convertToJsonArray(com.google.gson.JsonElement arg0, String arg1)
method_15252(com.google.gson.JsonElement arg0, String arg1)
asArray(com.google.gson.JsonElement element, String name)
func_151207_m(com.google.gson.JsonElement arg0, String arg1)
public static com.google.gson.JsonArray
u(com.google.gson.JsonObject arg0, String arg1)
getAsJsonArray(com.google.gson.JsonObject arg0, String arg1)
method_15261(com.google.gson.JsonObject arg0, String arg1)
getArray(com.google.gson.JsonObject object, String element)
func_151214_t(com.google.gson.JsonObject arg0, String arg1)
public static com.google.gson.JsonArray
a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonArray arg2)
getAsJsonArray(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)
getArray(com.google.gson.JsonObject object, String name, com.google.gson.JsonArray defaultArray)
func_151213_a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonArray arg2)
public static <T> T
a(com.google.gson.JsonElement arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
convertToObject(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 name, 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)
public static <T> T
a(com.google.gson.JsonObject arg0, String arg1, com.google.gson.JsonDeserializationContext arg2, Class<? extends T> arg3)
getAsObject(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 object, String element, 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)
public static <T> T
a(com.google.gson.JsonObject arg0, String arg1, T arg2, com.google.gson.JsonDeserializationContext arg3, Class<? extends T> arg4)
getAsObject(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)
deserialize(com.google.gson.JsonObject object, String element, 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)
public static String
d(com.google.gson.JsonElement arg0)
getType(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)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
fromJson(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)
deserialize(com.google.gson.Gson arg0, Reader arg1, Class<T> type, boolean lenient)
func_188173_a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
fromJson(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)
deserialize(com.google.gson.Gson arg0, String content, Class<T> arg2, boolean lenient)
func_188176_a(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
fromJson(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
method_15276(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
deserialize(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
func_193839_a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
fromJson(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
method_15284(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
deserialize(com.google.gson.Gson arg0, String content, Class<T> arg2)
func_188178_a(com.google.gson.Gson arg0, String arg1, Class<T> arg2)
public static com.google.gson.JsonObject
a(String arg0, boolean arg1)
parse(String arg0, boolean arg1)
method_15298(String arg0, boolean arg1)
deserialize(String content, boolean lenient)
func_212746_a(String arg0, boolean arg1)
public static com.google.gson.JsonObject
a(Reader arg0, boolean arg1)
parse(Reader arg0, boolean arg1)
method_15274(Reader arg0, boolean arg1)
deserialize(Reader arg0, boolean lenient)
func_212744_a(Reader arg0, boolean arg1)
public static com.google.gson.JsonObject
a(String arg0)
parse(String arg0)
method_15285(String arg0)
deserialize(String content)
func_212745_a(String arg0)
public static com.google.gson.JsonObject
a(Reader arg0)
parse(Reader arg0)
method_15255(Reader arg0)
deserialize(Reader arg0)
func_212743_a(Reader arg0)
public static boolean
a(com.google.gson.JsonElement arg0)
isStringValue(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)
public static boolean
c(com.google.gson.JsonObject arg0, String arg1)
isBooleanValue(com.google.gson.JsonObject arg0, String arg1)
method_15254(com.google.gson.JsonObject arg0, String arg1)
hasBoolean(com.google.gson.JsonObject object, String element)
func_180199_c(com.google.gson.JsonObject arg0, String arg1)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
fromJson(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
method_15273(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
deserialize(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean lenient)
func_233011_a_(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
fromJson(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
method_15262(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
deserialize(com.google.gson.Gson arg0, String content, com.google.gson.reflect.TypeToken<T> arg2, boolean lenient)
func_233013_a_(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2)
fromJson(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2)
method_15297(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2)
deserialize(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2)
func_233010_a_(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2)
fromJson(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2)
method_15290(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2)
deserialize(com.google.gson.Gson arg0, String content, com.google.gson.reflect.TypeToken<T> arg2)
func_233012_a_(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2)