net.minecraft.util

public class GsonHelper

ayp
net.minecraft.util.GsonHelper
net.minecraft.class_3518
net.minecraft.util.JsonHelper
net.minecraft.util.ChatDeserializer

Field summary

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

Constructor summary

ModifierConstructor
public ()

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)
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)
public static boolean
b(com.google.gson.JsonObject arg0, String arg1)
isNumberValue(com.google.gson.JsonObject arg0, String arg1)
method_34920(com.google.gson.JsonObject arg0, String arg1)
hasNumber(com.google.gson.JsonObject object, String element)
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)
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)
public static boolean
c(com.google.gson.JsonElement arg0)
isBooleanValue(com.google.gson.JsonElement arg0)
method_34921(com.google.gson.JsonElement arg0)
isBoolean(com.google.gson.JsonElement object)
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)
public static boolean
e(com.google.gson.JsonObject arg0, String arg1)
isObjectNode(com.google.gson.JsonObject arg0, String arg1)
method_34923(com.google.gson.JsonObject arg0, String arg1)
hasJsonObject(com.google.gson.JsonObject object, String element)
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)
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 element)
public static com.google.gson.JsonElement
h(com.google.gson.JsonObject arg0, String arg1)
getNonNull(com.google.gson.JsonObject arg0, String arg1)
method_52226(com.google.gson.JsonObject arg0, String arg1)
getElement(com.google.gson.JsonObject object, String name)
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)
public static String
i(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)
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)
public static Holder<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)
public static Holder<Item>
j(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)
public static Holder<Item>
a(com.google.gson.JsonObject arg0, String arg1, jr<cwm> arg2)
getAsItem(com.google.gson.JsonObject arg0, String arg1, Holder<Item> arg2)
method_34916(com.google.gson.JsonObject arg0, String arg1, class_6880<class_1792> arg2)
getItem(com.google.gson.JsonObject object, String key, RegistryEntry<Item> defaultValue)
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)
public static boolean
k(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)
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)
public static double
d(com.google.gson.JsonElement arg0, String arg1)
convertToDouble(com.google.gson.JsonElement arg0, String arg1)
method_34922(com.google.gson.JsonElement arg0, String arg1)
asDouble(com.google.gson.JsonElement object, String name)
public static double
l(com.google.gson.JsonObject arg0, String arg1)
getAsDouble(com.google.gson.JsonObject arg0, String arg1)
method_34927(com.google.gson.JsonObject arg0, String arg1)
getDouble(com.google.gson.JsonObject object, String element)
public static double
a(com.google.gson.JsonObject arg0, String arg1, double arg2)
getAsDouble(com.google.gson.JsonObject arg0, String arg1, double arg2)
method_34915(com.google.gson.JsonObject arg0, String arg1, double arg2)
getDouble(com.google.gson.JsonObject object, String element, double defaultDouble)
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)
public static float
m(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)
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)
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)
public static long
n(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)
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)
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)
public static int
o(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)
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)
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)
public static byte
p(com.google.gson.JsonObject arg0, String arg1)
getAsByte(com.google.gson.JsonObject arg0, String arg1)
method_34929(com.google.gson.JsonObject arg0, String arg1)
getByte(com.google.gson.JsonObject object, String element)
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)
public static char
i(com.google.gson.JsonElement arg0, String arg1)
convertToCharacter(com.google.gson.JsonElement arg0, String arg1)
method_34924(com.google.gson.JsonElement arg0, String arg1)
asChar(com.google.gson.JsonElement element, String name)
public static char
q(com.google.gson.JsonObject arg0, String arg1)
getAsCharacter(com.google.gson.JsonObject arg0, String arg1)
method_34930(com.google.gson.JsonObject arg0, String arg1)
getChar(com.google.gson.JsonObject object, String element)
public static char
a(com.google.gson.JsonObject arg0, String arg1, char arg2)
getAsCharacter(com.google.gson.JsonObject arg0, String arg1, char arg2)
method_34914(com.google.gson.JsonObject arg0, String arg1, char arg2)
getChar(com.google.gson.JsonObject object, String element, char defaultChar)
public static BigDecimal
j(com.google.gson.JsonElement arg0, String arg1)
convertToBigDecimal(com.google.gson.JsonElement arg0, String arg1)
method_34925(com.google.gson.JsonElement arg0, String arg1)
asBigDecimal(com.google.gson.JsonElement element, String name)
public static BigDecimal
r(com.google.gson.JsonObject arg0, String arg1)
getAsBigDecimal(com.google.gson.JsonObject arg0, String arg1)
method_34931(com.google.gson.JsonObject arg0, String arg1)
getBigDecimal(com.google.gson.JsonObject object, String element)
public static BigDecimal
a(com.google.gson.JsonObject arg0, String arg1, BigDecimal arg2)
getAsBigDecimal(com.google.gson.JsonObject arg0, String arg1, BigDecimal arg2)
method_34917(com.google.gson.JsonObject arg0, String arg1, BigDecimal arg2)
getBigDecimal(com.google.gson.JsonObject object, String element, BigDecimal defaultBigDecimal)
public static BigInteger
k(com.google.gson.JsonElement arg0, String arg1)
convertToBigInteger(com.google.gson.JsonElement arg0, String arg1)
method_34926(com.google.gson.JsonElement arg0, String arg1)
asBigInteger(com.google.gson.JsonElement element, String name)
public static BigInteger
s(com.google.gson.JsonObject arg0, String arg1)
getAsBigInteger(com.google.gson.JsonObject arg0, String arg1)
method_34932(com.google.gson.JsonObject arg0, String arg1)
getBigInteger(com.google.gson.JsonObject object, String element)
public static BigInteger
a(com.google.gson.JsonObject arg0, String arg1, BigInteger arg2)
getAsBigInteger(com.google.gson.JsonObject arg0, String arg1, BigInteger arg2)
method_34918(com.google.gson.JsonObject arg0, String arg1, BigInteger arg2)
getBigInteger(com.google.gson.JsonObject object, String element, BigInteger defaultBigInteger)
public static short
l(com.google.gson.JsonElement arg0, String arg1)
convertToShort(com.google.gson.JsonElement arg0, String arg1)
method_34928(com.google.gson.JsonElement arg0, String arg1)
asShort(com.google.gson.JsonElement element, String name)
public static short
t(com.google.gson.JsonObject arg0, String arg1)
getAsShort(com.google.gson.JsonObject arg0, String arg1)
method_34933(com.google.gson.JsonObject arg0, String arg1)
getShort(com.google.gson.JsonObject object, String element)
public static short
a(com.google.gson.JsonObject arg0, String arg1, short arg2)
getAsShort(com.google.gson.JsonObject arg0, String arg1, short arg2)
method_34919(com.google.gson.JsonObject arg0, String arg1, short arg2)
getShort(com.google.gson.JsonObject object, String element, short defaultShort)
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)
public static com.google.gson.JsonObject
u(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)
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)
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)
public static com.google.gson.JsonArray
v(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)
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)
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)
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)
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)
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)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
fromNullableJson(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
method_47993(com.google.gson.Gson arg0, Reader arg1, Class<T> arg2, boolean arg3)
deserializeNullable(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient)
public static <T> T
b(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 gson, Reader reader, Class<T> type, boolean lenient)
public static <T> T
a(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
fromNullableJson(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
method_47992(com.google.gson.Gson arg0, Reader arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
deserializeNullable(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient)
public static <T> T
b(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 gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2, boolean arg3)
fromNullableJson(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 gson, String content, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient)
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 gson, String content, Class<T> type, boolean lenient)
public static <T> T
b(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
fromNullableJson(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
method_47994(com.google.gson.Gson arg0, String arg1, Class<T> arg2, boolean arg3)
deserializeNullable(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient)
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 gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken)
public static <T> T
a(com.google.gson.Gson arg0, String arg1, com.google.gson.reflect.TypeToken<T> arg2)
fromNullableJson(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 gson, String content, com.google.gson.reflect.TypeToken<T> typeToken)
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 gson, Reader reader, Class<T> type)
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 gson, String content, Class<T> type)
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)
public static com.google.gson.JsonObject
a(Reader arg0, boolean arg1)
parse(Reader arg0, boolean arg1)
method_15274(Reader arg0, boolean arg1)
deserialize(Reader reader, boolean lenient)
public static com.google.gson.JsonObject
a(String arg0)
parse(String arg0)
method_15285(String arg0)
deserialize(String content)
public static com.google.gson.JsonObject
a(Reader arg0)
parse(Reader arg0)
method_15255(Reader arg0)
deserialize(Reader reader)
public static com.google.gson.JsonArray
b(String arg0)
parseArray(String arg0)
method_43679(String arg0)
deserializeArray(String content)
public static com.google.gson.JsonArray
b(Reader arg0)
parseArray(Reader arg0)
method_37165(Reader arg0)
deserializeArray(Reader reader)
public static String
e(com.google.gson.JsonElement arg0)
toStableString(com.google.gson.JsonElement arg0)
method_43680(com.google.gson.JsonElement arg0)
toSortedString(com.google.gson.JsonElement json)
public static void
a(com.google.gson.stream.JsonWriter arg0, com.google.gson.JsonElement arg1, Comparator<String> arg2)
writeValue(com.google.gson.stream.JsonWriter arg0, com.google.gson.JsonElement arg1, Comparator<String> arg2)
method_43677(com.google.gson.stream.JsonWriter arg0, com.google.gson.JsonElement arg1, Comparator<String> arg2)
writeSorted(com.google.gson.stream.JsonWriter writer, com.google.gson.JsonElement json, Comparator<String> comparator)
private static Collection<Map$Entry<String, com.google.gson.JsonElement>>
a(Collection<Map$Entry<String, com.google.gson.JsonElement>> arg0, Comparator<String> arg1)
sortByKeyIfNeeded(Collection<Map$Entry<String, com.google.gson.JsonElement>> arg0, Comparator<String> arg1)
method_43678(Collection<Map$Entry<String, com.google.gson.JsonElement>> arg0, Comparator<String> arg1)
sort(Collection<Map$Entry<String, com.google.gson.JsonElement>> entries, Comparator<String> comparator)