Package net.minecraft.util
Class JsonHelper
java.lang.Object
net.minecraft.util.JsonHelper
Provides methods for validating and deserializing JSON elements.
- Mappings:
Namespace Name official arn
intermediary net/minecraft/class_3518
named net/minecraft/util/JsonHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonArray
static BigDecimal
asBigDecimal
(com.google.gson.JsonElement element, String name) static BigInteger
asBigInteger
(com.google.gson.JsonElement element, String name) static boolean
static byte
static char
static double
static float
static int
static RegistryEntry<Item>
static long
static com.google.gson.JsonObject
static short
static String
static <T> T
deserialize
(@Nullable com.google.gson.JsonElement element, String name, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) static <T> T
deserialize
(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken) static <T> T
deserialize
(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) static <T> T
deserialize
(com.google.gson.Gson gson, Reader reader, Class<T> type) static <T> T
deserialize
(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient) static <T> T
deserialize
(com.google.gson.Gson gson, String content, com.google.gson.reflect.TypeToken<T> typeToken) static <T> T
deserialize
(com.google.gson.Gson gson, String content, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) static <T> T
deserialize
(com.google.gson.Gson gson, String content, Class<T> type) static <T> T
deserialize
(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient) static <T> T
deserialize
(com.google.gson.JsonObject object, String element, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) static <T> T
deserialize
(com.google.gson.JsonObject object, String element, T defaultValue, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) static com.google.gson.JsonObject
deserialize
(Reader reader) static com.google.gson.JsonObject
deserialize
(Reader reader, boolean lenient) static com.google.gson.JsonObject
deserialize
(String content) static com.google.gson.JsonObject
deserialize
(String content, boolean lenient) static com.google.gson.JsonArray
deserializeArray
(Reader reader) static com.google.gson.JsonArray
deserializeArray
(String content) static <T> T
deserializeNullable
(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) static <T> T
deserializeNullable
(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient) static <T> T
deserializeNullable
(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient) static com.google.gson.JsonArray
static @Nullable com.google.gson.JsonArray
getArray
(com.google.gson.JsonObject object, String name, @Nullable com.google.gson.JsonArray defaultArray) static BigDecimal
getBigDecimal
(com.google.gson.JsonObject object, String element) static BigDecimal
getBigDecimal
(com.google.gson.JsonObject object, String element, BigDecimal defaultBigDecimal) static BigInteger
getBigInteger
(com.google.gson.JsonObject object, String element) static BigInteger
getBigInteger
(com.google.gson.JsonObject object, String element, BigInteger defaultBigInteger) static boolean
getBoolean
(com.google.gson.JsonObject object, String element) static boolean
getBoolean
(com.google.gson.JsonObject object, String element, boolean defaultBoolean) static byte
static byte
static char
static char
static double
static double
static com.google.gson.JsonElement
getElement
(com.google.gson.JsonObject object, String name) static float
static float
static int
static int
static RegistryEntry<Item>
static @Nullable RegistryEntry<Item>
getItem
(com.google.gson.JsonObject object, String key, @Nullable RegistryEntry<Item> defaultValue) static long
static long
static com.google.gson.JsonObject
static @Nullable com.google.gson.JsonObject
getObject
(com.google.gson.JsonObject object, String element, @Nullable com.google.gson.JsonObject defaultObject) static short
static short
static String
static @Nullable String
static String
getType
(@Nullable com.google.gson.JsonElement element) static boolean
static boolean
hasBoolean
(com.google.gson.JsonObject object, String element) static boolean
hasElement
(@Nullable com.google.gson.JsonObject object, String element) static boolean
hasJsonObject
(com.google.gson.JsonObject object, String element) static boolean
static boolean
hasPrimitive
(com.google.gson.JsonObject object, String element) static boolean
static boolean
isBoolean
(com.google.gson.JsonElement object) static boolean
isNumber
(com.google.gson.JsonElement element) static boolean
isString
(com.google.gson.JsonElement element) private static Collection<Map.Entry<String,
com.google.gson.JsonElement>> sort
(Collection<Map.Entry<String, com.google.gson.JsonElement>> entries, @Nullable Comparator<String> comparator) static String
toSortedString
(com.google.gson.JsonElement json) static void
writeSorted
(com.google.gson.stream.JsonWriter writer, @Nullable com.google.gson.JsonElement json, @Nullable Comparator<String> comparator)
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON- Mappings:
Namespace Name Mixin selector official a
Larn;a:Lcom/google/gson/Gson;
intermediary field_15657
Lnet/minecraft/class_3518;field_15657:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/util/JsonHelper;GSON:Lcom/google/gson/Gson;
-
-
Constructor Details
-
JsonHelper
public JsonHelper()
-
-
Method Details
-
hasString
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_15289
Lnet/minecraft/class_3518;method_15289(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasString
Lnet/minecraft/util/JsonHelper;hasString(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isString
public static boolean isString(com.google.gson.JsonElement element) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonElement;)Z
intermediary method_15286
Lnet/minecraft/class_3518;method_15286(Lcom/google/gson/JsonElement;)Z
named isString
Lnet/minecraft/util/JsonHelper;isString(Lcom/google/gson/JsonElement;)Z
-
hasNumber
- Mappings:
Namespace Name Mixin selector official b
Larn;b(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_34920
Lnet/minecraft/class_3518;method_34920(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasNumber
Lnet/minecraft/util/JsonHelper;hasNumber(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isNumber
public static boolean isNumber(com.google.gson.JsonElement element) - Mappings:
Namespace Name Mixin selector official b
Larn;b(Lcom/google/gson/JsonElement;)Z
intermediary method_15275
Lnet/minecraft/class_3518;method_15275(Lcom/google/gson/JsonElement;)Z
named isNumber
Lnet/minecraft/util/JsonHelper;isNumber(Lcom/google/gson/JsonElement;)Z
-
hasBoolean
- Mappings:
Namespace Name Mixin selector official c
Larn;c(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_15254
Lnet/minecraft/class_3518;method_15254(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasBoolean
Lnet/minecraft/util/JsonHelper;hasBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isBoolean
public static boolean isBoolean(com.google.gson.JsonElement object) - Mappings:
Namespace Name Mixin selector official c
Larn;c(Lcom/google/gson/JsonElement;)Z
intermediary method_34921
Lnet/minecraft/class_3518;method_34921(Lcom/google/gson/JsonElement;)Z
named isBoolean
Lnet/minecraft/util/JsonHelper;isBoolean(Lcom/google/gson/JsonElement;)Z
-
hasArray
- Mappings:
Namespace Name Mixin selector official d
Larn;d(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_15264
Lnet/minecraft/class_3518;method_15264(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasArray
Lnet/minecraft/util/JsonHelper;hasArray(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasJsonObject
- Mappings:
Namespace Name Mixin selector official e
Larn;e(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_34923
Lnet/minecraft/class_3518;method_34923(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasJsonObject
Lnet/minecraft/util/JsonHelper;hasJsonObject(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasPrimitive
- Mappings:
Namespace Name Mixin selector official f
Larn;f(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_15278
Lnet/minecraft/class_3518;method_15278(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasPrimitive
Lnet/minecraft/util/JsonHelper;hasPrimitive(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasElement
public static boolean hasElement(@Nullable @Nullable com.google.gson.JsonObject object, String element) - Mappings:
Namespace Name Mixin selector official g
Larn;g(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_15294
Lnet/minecraft/class_3518;method_15294(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named hasElement
Lnet/minecraft/util/JsonHelper;hasElement(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
getElement
public static com.google.gson.JsonElement getElement(com.google.gson.JsonObject object, String name) - Mappings:
Namespace Name Mixin selector official h
Larn;h(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonElement;
intermediary method_52226
Lnet/minecraft/class_3518;method_52226(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonElement;
named getElement
Lnet/minecraft/util/JsonHelper;getElement(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonElement;
-
asString
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;
intermediary method_15287
Lnet/minecraft/class_3518;method_15287(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;
named asString
Lnet/minecraft/util/JsonHelper;asString(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;
-
getString
- Mappings:
Namespace Name Mixin selector official i
Larn;i(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
intermediary method_15265
Lnet/minecraft/class_3518;method_15265(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
named getString
Lnet/minecraft/util/JsonHelper;getString(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
-
getString
@Contract("_,_,!null->!null;_,_,null->_") @Nullable public static @Nullable String getString(com.google.gson.JsonObject object, String element, @Nullable @Nullable String defaultStr) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_15253
Lnet/minecraft/class_3518;method_15253(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
named getString
Lnet/minecraft/util/JsonHelper;getString(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
asItem
- Mappings:
Namespace Name Mixin selector official b
Larn;b(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lhe;
intermediary method_15256
Lnet/minecraft/class_3518;method_15256(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lnet/minecraft/class_6880;
named asItem
Lnet/minecraft/util/JsonHelper;asItem(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
-
getItem
- Mappings:
Namespace Name Mixin selector official j
Larn;j(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lhe;
intermediary method_15288
Lnet/minecraft/class_3518;method_15288(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/class_6880;
named getItem
Lnet/minecraft/util/JsonHelper;getItem(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;
-
getItem
@Contract("_,_,!null->!null;_,_,null->_") @Nullable public static @Nullable RegistryEntry<Item> getItem(com.google.gson.JsonObject object, String key, @Nullable @Nullable RegistryEntry<Item> defaultValue) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lhe;)Lhe;
intermediary method_34916
Lnet/minecraft/class_3518;method_34916(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;
named getItem
Lnet/minecraft/util/JsonHelper;getItem(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/registry/entry/RegistryEntry;
-
asBoolean
- Mappings:
Namespace Name Mixin selector official c
Larn;c(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
intermediary method_15268
Lnet/minecraft/class_3518;method_15268(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
named asBoolean
Lnet/minecraft/util/JsonHelper;asBoolean(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
-
getBoolean
- Mappings:
Namespace Name Mixin selector official k
Larn;k(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
intermediary method_15270
Lnet/minecraft/class_3518;method_15270(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
named getBoolean
Lnet/minecraft/util/JsonHelper;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
getBoolean
public static boolean getBoolean(com.google.gson.JsonObject object, String element, boolean defaultBoolean) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Z
intermediary method_15258
Lnet/minecraft/class_3518;method_15258(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Z
named getBoolean
Lnet/minecraft/util/JsonHelper;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Z
-
asDouble
- Mappings:
Namespace Name Mixin selector official d
Larn;d(Lcom/google/gson/JsonElement;Ljava/lang/String;)D
intermediary method_34922
Lnet/minecraft/class_3518;method_34922(Lcom/google/gson/JsonElement;Ljava/lang/String;)D
named asDouble
Lnet/minecraft/util/JsonHelper;asDouble(Lcom/google/gson/JsonElement;Ljava/lang/String;)D
-
getDouble
- Mappings:
Namespace Name Mixin selector official l
Larn;l(Lcom/google/gson/JsonObject;Ljava/lang/String;)D
intermediary method_34927
Lnet/minecraft/class_3518;method_34927(Lcom/google/gson/JsonObject;Ljava/lang/String;)D
named getDouble
Lnet/minecraft/util/JsonHelper;getDouble(Lcom/google/gson/JsonObject;Ljava/lang/String;)D
-
getDouble
public static double getDouble(com.google.gson.JsonObject object, String element, double defaultDouble) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;D)D
intermediary method_34915
Lnet/minecraft/class_3518;method_34915(Lcom/google/gson/JsonObject;Ljava/lang/String;D)D
named getDouble
Lnet/minecraft/util/JsonHelper;getDouble(Lcom/google/gson/JsonObject;Ljava/lang/String;D)D
-
asFloat
- Mappings:
Namespace Name Mixin selector official e
Larn;e(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
intermediary method_15269
Lnet/minecraft/class_3518;method_15269(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
named asFloat
Lnet/minecraft/util/JsonHelper;asFloat(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
-
getFloat
- Mappings:
Namespace Name Mixin selector official m
Larn;m(Lcom/google/gson/JsonObject;Ljava/lang/String;)F
intermediary method_15259
Lnet/minecraft/class_3518;method_15259(Lcom/google/gson/JsonObject;Ljava/lang/String;)F
named getFloat
Lnet/minecraft/util/JsonHelper;getFloat(Lcom/google/gson/JsonObject;Ljava/lang/String;)F
-
getFloat
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;F)F
intermediary method_15277
Lnet/minecraft/class_3518;method_15277(Lcom/google/gson/JsonObject;Ljava/lang/String;F)F
named getFloat
Lnet/minecraft/util/JsonHelper;getFloat(Lcom/google/gson/JsonObject;Ljava/lang/String;F)F
-
asLong
- Mappings:
Namespace Name Mixin selector official f
Larn;f(Lcom/google/gson/JsonElement;Ljava/lang/String;)J
intermediary method_15263
Lnet/minecraft/class_3518;method_15263(Lcom/google/gson/JsonElement;Ljava/lang/String;)J
named asLong
Lnet/minecraft/util/JsonHelper;asLong(Lcom/google/gson/JsonElement;Ljava/lang/String;)J
-
getLong
- Mappings:
Namespace Name Mixin selector official n
Larn;n(Lcom/google/gson/JsonObject;Ljava/lang/String;)J
intermediary method_22449
Lnet/minecraft/class_3518;method_22449(Lcom/google/gson/JsonObject;Ljava/lang/String;)J
named getLong
Lnet/minecraft/util/JsonHelper;getLong(Lcom/google/gson/JsonObject;Ljava/lang/String;)J
-
getLong
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;J)J
intermediary method_15280
Lnet/minecraft/class_3518;method_15280(Lcom/google/gson/JsonObject;Ljava/lang/String;J)J
named getLong
Lnet/minecraft/util/JsonHelper;getLong(Lcom/google/gson/JsonObject;Ljava/lang/String;J)J
-
asInt
- Mappings:
Namespace Name Mixin selector official g
Larn;g(Lcom/google/gson/JsonElement;Ljava/lang/String;)I
intermediary method_15257
Lnet/minecraft/class_3518;method_15257(Lcom/google/gson/JsonElement;Ljava/lang/String;)I
named asInt
Lnet/minecraft/util/JsonHelper;asInt(Lcom/google/gson/JsonElement;Ljava/lang/String;)I
-
getInt
- Mappings:
Namespace Name Mixin selector official o
Larn;o(Lcom/google/gson/JsonObject;Ljava/lang/String;)I
intermediary method_15260
Lnet/minecraft/class_3518;method_15260(Lcom/google/gson/JsonObject;Ljava/lang/String;)I
named getInt
Lnet/minecraft/util/JsonHelper;getInt(Lcom/google/gson/JsonObject;Ljava/lang/String;)I
-
getInt
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
intermediary method_15282
Lnet/minecraft/class_3518;method_15282(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
named getInt
Lnet/minecraft/util/JsonHelper;getInt(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
-
asByte
- Mappings:
Namespace Name Mixin selector official h
Larn;h(Lcom/google/gson/JsonElement;Ljava/lang/String;)B
intermediary method_15293
Lnet/minecraft/class_3518;method_15293(Lcom/google/gson/JsonElement;Ljava/lang/String;)B
named asByte
Lnet/minecraft/util/JsonHelper;asByte(Lcom/google/gson/JsonElement;Ljava/lang/String;)B
-
getByte
- Mappings:
Namespace Name Mixin selector official p
Larn;p(Lcom/google/gson/JsonObject;Ljava/lang/String;)B
intermediary method_34929
Lnet/minecraft/class_3518;method_34929(Lcom/google/gson/JsonObject;Ljava/lang/String;)B
named getByte
Lnet/minecraft/util/JsonHelper;getByte(Lcom/google/gson/JsonObject;Ljava/lang/String;)B
-
getByte
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;B)B
intermediary method_15271
Lnet/minecraft/class_3518;method_15271(Lcom/google/gson/JsonObject;Ljava/lang/String;B)B
named getByte
Lnet/minecraft/util/JsonHelper;getByte(Lcom/google/gson/JsonObject;Ljava/lang/String;B)B
-
asChar
- Mappings:
Namespace Name Mixin selector official i
Larn;i(Lcom/google/gson/JsonElement;Ljava/lang/String;)C
intermediary method_34924
Lnet/minecraft/class_3518;method_34924(Lcom/google/gson/JsonElement;Ljava/lang/String;)C
named asChar
Lnet/minecraft/util/JsonHelper;asChar(Lcom/google/gson/JsonElement;Ljava/lang/String;)C
-
getChar
- Mappings:
Namespace Name Mixin selector official q
Larn;q(Lcom/google/gson/JsonObject;Ljava/lang/String;)C
intermediary method_34930
Lnet/minecraft/class_3518;method_34930(Lcom/google/gson/JsonObject;Ljava/lang/String;)C
named getChar
Lnet/minecraft/util/JsonHelper;getChar(Lcom/google/gson/JsonObject;Ljava/lang/String;)C
-
getChar
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;C)C
intermediary method_34914
Lnet/minecraft/class_3518;method_34914(Lcom/google/gson/JsonObject;Ljava/lang/String;C)C
named getChar
Lnet/minecraft/util/JsonHelper;getChar(Lcom/google/gson/JsonObject;Ljava/lang/String;C)C
-
asBigDecimal
- Mappings:
Namespace Name Mixin selector official j
Larn;j(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigDecimal;
intermediary method_34925
Lnet/minecraft/class_3518;method_34925(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigDecimal;
named asBigDecimal
Lnet/minecraft/util/JsonHelper;asBigDecimal(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigDecimal;
-
getBigDecimal
- Mappings:
Namespace Name Mixin selector official r
Larn;r(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigDecimal;
intermediary method_34931
Lnet/minecraft/class_3518;method_34931(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigDecimal;
named getBigDecimal
Lnet/minecraft/util/JsonHelper;getBigDecimal(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigDecimal;
-
getBigDecimal
public static BigDecimal getBigDecimal(com.google.gson.JsonObject object, String element, BigDecimal defaultBigDecimal) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
intermediary method_34917
Lnet/minecraft/class_3518;method_34917(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
named getBigDecimal
Lnet/minecraft/util/JsonHelper;getBigDecimal(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
-
asBigInteger
- Mappings:
Namespace Name Mixin selector official k
Larn;k(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigInteger;
intermediary method_34926
Lnet/minecraft/class_3518;method_34926(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigInteger;
named asBigInteger
Lnet/minecraft/util/JsonHelper;asBigInteger(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigInteger;
-
getBigInteger
- Mappings:
Namespace Name Mixin selector official s
Larn;s(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigInteger;
intermediary method_34932
Lnet/minecraft/class_3518;method_34932(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigInteger;
named getBigInteger
Lnet/minecraft/util/JsonHelper;getBigInteger(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigInteger;
-
getBigInteger
public static BigInteger getBigInteger(com.google.gson.JsonObject object, String element, BigInteger defaultBigInteger) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;
intermediary method_34918
Lnet/minecraft/class_3518;method_34918(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;
named getBigInteger
Lnet/minecraft/util/JsonHelper;getBigInteger(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;
-
asShort
- Mappings:
Namespace Name Mixin selector official l
Larn;l(Lcom/google/gson/JsonElement;Ljava/lang/String;)S
intermediary method_34928
Lnet/minecraft/class_3518;method_34928(Lcom/google/gson/JsonElement;Ljava/lang/String;)S
named asShort
Lnet/minecraft/util/JsonHelper;asShort(Lcom/google/gson/JsonElement;Ljava/lang/String;)S
-
getShort
- Mappings:
Namespace Name Mixin selector official t
Larn;t(Lcom/google/gson/JsonObject;Ljava/lang/String;)S
intermediary method_34933
Lnet/minecraft/class_3518;method_34933(Lcom/google/gson/JsonObject;Ljava/lang/String;)S
named getShort
Lnet/minecraft/util/JsonHelper;getShort(Lcom/google/gson/JsonObject;Ljava/lang/String;)S
-
getShort
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;S)S
intermediary method_34919
Lnet/minecraft/class_3518;method_34919(Lcom/google/gson/JsonObject;Ljava/lang/String;S)S
named getShort
Lnet/minecraft/util/JsonHelper;getShort(Lcom/google/gson/JsonObject;Ljava/lang/String;S)S
-
asObject
- Mappings:
Namespace Name Mixin selector official m
Larn;m(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;
intermediary method_15295
Lnet/minecraft/class_3518;method_15295(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;
named asObject
Lnet/minecraft/util/JsonHelper;asObject(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;
-
getObject
public static com.google.gson.JsonObject getObject(com.google.gson.JsonObject object, String element) - Mappings:
Namespace Name Mixin selector official u
Larn;u(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;
intermediary method_15296
Lnet/minecraft/class_3518;method_15296(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;
named getObject
Lnet/minecraft/util/JsonHelper;getObject(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;
-
getObject
@Contract("_,_,!null->!null;_,_,null->_") @Nullable public static @Nullable com.google.gson.JsonObject getObject(com.google.gson.JsonObject object, String element, @Nullable @Nullable com.google.gson.JsonObject defaultObject) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;
intermediary method_15281
Lnet/minecraft/class_3518;method_15281(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;
named getObject
Lnet/minecraft/util/JsonHelper;getObject(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;
-
asArray
- Mappings:
Namespace Name Mixin selector official n
Larn;n(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;
intermediary method_15252
Lnet/minecraft/class_3518;method_15252(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;
named asArray
Lnet/minecraft/util/JsonHelper;asArray(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;
-
getArray
- Mappings:
Namespace Name Mixin selector official v
Larn;v(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;
intermediary method_15261
Lnet/minecraft/class_3518;method_15261(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;
named getArray
Lnet/minecraft/util/JsonHelper;getArray(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;
-
getArray
@Contract("_,_,!null->!null;_,_,null->_") @Nullable public static @Nullable com.google.gson.JsonArray getArray(com.google.gson.JsonObject object, String name, @Nullable @Nullable com.google.gson.JsonArray defaultArray) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;
intermediary method_15292
Lnet/minecraft/class_3518;method_15292(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;
named getArray
Lnet/minecraft/util/JsonHelper;getArray(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;
-
deserialize
public static <T> T deserialize(@Nullable @Nullable com.google.gson.JsonElement element, String name, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonElement;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
intermediary method_15291
Lnet/minecraft/class_3518;method_15291(Lcom/google/gson/JsonElement;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
-
deserialize
public static <T> T deserialize(com.google.gson.JsonObject object, String element, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
intermediary method_15272
Lnet/minecraft/class_3518;method_15272(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
-
deserialize
@Contract("_,_,!null,_,_->!null;_,_,null,_,_->_") @Nullable public static <T> T deserialize(com.google.gson.JsonObject object, String element, @Nullable T defaultValue, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Object;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
intermediary method_15283
Lnet/minecraft/class_3518;method_15283(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Object;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Object;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;
-
getType
- Mappings:
Namespace Name Mixin selector official d
Larn;d(Lcom/google/gson/JsonElement;)Ljava/lang/String;
intermediary method_15266
Lnet/minecraft/class_3518;method_15266(Lcom/google/gson/JsonElement;)Ljava/lang/String;
named getType
Lnet/minecraft/util/JsonHelper;getType(Lcom/google/gson/JsonElement;)Ljava/lang/String;
-
deserializeNullable
@Nullable public static <T> T deserializeNullable(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;
intermediary method_47993
Lnet/minecraft/class_3518;method_47993(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;
named deserializeNullable
Lnet/minecraft/util/JsonHelper;deserializeNullable(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;
-
deserialize
public static <T> T deserialize(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient) - Mappings:
Namespace Name Mixin selector official b
Larn;b(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;
intermediary method_15267
Lnet/minecraft/class_3518;method_15267(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;
-
deserializeNullable
@Nullable public static <T> T deserializeNullable(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
intermediary method_47992
Lnet/minecraft/class_3518;method_47992(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
named deserializeNullable
Lnet/minecraft/util/JsonHelper;deserializeNullable(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
-
deserialize
public static <T> T deserialize(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) - Mappings:
Namespace Name Mixin selector official b
Larn;b(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
intermediary method_15273
Lnet/minecraft/class_3518;method_15273(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
-
deserialize
@Nullable public static <T> T deserialize(com.google.gson.Gson gson, String content, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
intermediary method_15262
Lnet/minecraft/class_3518;method_15262(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;
-
deserialize
public static <T> T deserialize(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;
intermediary method_15279
Lnet/minecraft/class_3518;method_15279(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;
-
deserializeNullable
@Nullable public static <T> T deserializeNullable(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient) - Mappings:
Namespace Name Mixin selector official b
Larn;b(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;
intermediary method_47994
Lnet/minecraft/class_3518;method_47994(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;
named deserializeNullable
Lnet/minecraft/util/JsonHelper;deserializeNullable(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;
-
deserialize
public static <T> T deserialize(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
intermediary method_15297
Lnet/minecraft/class_3518;method_15297(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
-
deserialize
@Nullable public static <T> T deserialize(com.google.gson.Gson gson, String content, com.google.gson.reflect.TypeToken<T> typeToken) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
intermediary method_15290
Lnet/minecraft/class_3518;method_15290(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
intermediary method_15276
Lnet/minecraft/class_3518;method_15276(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
intermediary method_15284
Lnet/minecraft/class_3518;method_15284(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Ljava/lang/String;Z)Lcom/google/gson/JsonObject;
intermediary method_15298
Lnet/minecraft/class_3518;method_15298(Ljava/lang/String;Z)Lcom/google/gson/JsonObject;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Ljava/lang/String;Z)Lcom/google/gson/JsonObject;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Ljava/io/Reader;Z)Lcom/google/gson/JsonObject;
intermediary method_15274
Lnet/minecraft/class_3518;method_15274(Ljava/io/Reader;Z)Lcom/google/gson/JsonObject;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Ljava/io/Reader;Z)Lcom/google/gson/JsonObject;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Ljava/lang/String;)Lcom/google/gson/JsonObject;
intermediary method_15285
Lnet/minecraft/class_3518;method_15285(Ljava/lang/String;)Lcom/google/gson/JsonObject;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Ljava/lang/String;)Lcom/google/gson/JsonObject;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Ljava/io/Reader;)Lcom/google/gson/JsonObject;
intermediary method_15255
Lnet/minecraft/class_3518;method_15255(Ljava/io/Reader;)Lcom/google/gson/JsonObject;
named deserialize
Lnet/minecraft/util/JsonHelper;deserialize(Ljava/io/Reader;)Lcom/google/gson/JsonObject;
-
deserializeArray
- Mappings:
Namespace Name Mixin selector official b
Larn;b(Ljava/lang/String;)Lcom/google/gson/JsonArray;
intermediary method_43679
Lnet/minecraft/class_3518;method_43679(Ljava/lang/String;)Lcom/google/gson/JsonArray;
named deserializeArray
Lnet/minecraft/util/JsonHelper;deserializeArray(Ljava/lang/String;)Lcom/google/gson/JsonArray;
-
deserializeArray
- Mappings:
Namespace Name Mixin selector official b
Larn;b(Ljava/io/Reader;)Lcom/google/gson/JsonArray;
intermediary method_37165
Lnet/minecraft/class_3518;method_37165(Ljava/io/Reader;)Lcom/google/gson/JsonArray;
named deserializeArray
Lnet/minecraft/util/JsonHelper;deserializeArray(Ljava/io/Reader;)Lcom/google/gson/JsonArray;
-
toSortedString
- Mappings:
Namespace Name Mixin selector official e
Larn;e(Lcom/google/gson/JsonElement;)Ljava/lang/String;
intermediary method_43680
Lnet/minecraft/class_3518;method_43680(Lcom/google/gson/JsonElement;)Ljava/lang/String;
named toSortedString
Lnet/minecraft/util/JsonHelper;toSortedString(Lcom/google/gson/JsonElement;)Ljava/lang/String;
-
writeSorted
public static void writeSorted(com.google.gson.stream.JsonWriter writer, @Nullable @Nullable com.google.gson.JsonElement json, @Nullable @Nullable Comparator<String> comparator) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Larn;a(Lcom/google/gson/stream/JsonWriter;Lcom/google/gson/JsonElement;Ljava/util/Comparator;)V
intermediary method_43677
Lnet/minecraft/class_3518;method_43677(Lcom/google/gson/stream/JsonWriter;Lcom/google/gson/JsonElement;Ljava/util/Comparator;)V
named writeSorted
Lnet/minecraft/util/JsonHelper;writeSorted(Lcom/google/gson/stream/JsonWriter;Lcom/google/gson/JsonElement;Ljava/util/Comparator;)V
-
sort
private static Collection<Map.Entry<String,com.google.gson.JsonElement>> sort(Collection<Map.Entry<String, com.google.gson.JsonElement>> entries, @Nullable @Nullable Comparator<String> comparator) - Mappings:
Namespace Name Mixin selector official a
Larn;a(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/util/Collection;
intermediary method_43678
Lnet/minecraft/class_3518;method_43678(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/util/Collection;
named sort
Lnet/minecraft/util/JsonHelper;sort(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/util/Collection;
-