Package net.minecraft.util
Class JsonHelper
java.lang.Object
net.minecraft.util.JsonHelper
Provides methods for validating and deserializing JSON elements.
- Mappings:
Namespace Name named net/minecraft/util/JsonHelperintermediary net/minecraft/class_3518official axw
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonArraystatic BigDecimalasBigDecimal(com.google.gson.JsonElement element, String name) static BigIntegerasBigInteger(com.google.gson.JsonElement element, String name) static booleanstatic bytestatic charstatic doublestatic floatstatic intstatic RegistryEntry<Item> static longstatic com.google.gson.JsonObjectstatic shortstatic Stringstatic <T> Tdeserialize(@Nullable com.google.gson.JsonElement element, String name, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) static <T> Tdeserialize(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken) static <T> Tdeserialize(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) static <T> Tdeserialize(com.google.gson.Gson gson, Reader reader, Class<T> type) static <T> Tdeserialize(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient) static <T> Tdeserialize(com.google.gson.Gson gson, String content, com.google.gson.reflect.TypeToken<T> typeToken) static <T> Tdeserialize(com.google.gson.Gson gson, String content, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) static <T> Tdeserialize(com.google.gson.Gson gson, String content, Class<T> type) static <T> Tdeserialize(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient) static <T> Tdeserialize(com.google.gson.JsonObject object, String element, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) static <T> Tdeserialize(com.google.gson.JsonObject object, String element, T defaultValue, com.google.gson.JsonDeserializationContext context, Class<? extends T> type) static com.google.gson.JsonObjectdeserialize(Reader reader) static com.google.gson.JsonObjectdeserialize(Reader reader, boolean lenient) static com.google.gson.JsonObjectdeserialize(String content) static com.google.gson.JsonObjectdeserialize(String content, boolean lenient) static com.google.gson.JsonArraydeserializeArray(Reader reader) static com.google.gson.JsonArraydeserializeArray(String content) static <T> TdeserializeNullable(com.google.gson.Gson gson, Reader reader, com.google.gson.reflect.TypeToken<T> typeToken, boolean lenient) static <T> TdeserializeNullable(com.google.gson.Gson gson, Reader reader, Class<T> type, boolean lenient) static <T> TdeserializeNullable(com.google.gson.Gson gson, String content, Class<T> type, boolean lenient) static com.google.gson.JsonArraystatic @Nullable com.google.gson.JsonArraygetArray(com.google.gson.JsonObject object, String name, @Nullable com.google.gson.JsonArray defaultArray) static BigDecimalgetBigDecimal(com.google.gson.JsonObject object, String element) static BigDecimalgetBigDecimal(com.google.gson.JsonObject object, String element, BigDecimal defaultBigDecimal) static BigIntegergetBigInteger(com.google.gson.JsonObject object, String element) static BigIntegergetBigInteger(com.google.gson.JsonObject object, String element, BigInteger defaultBigInteger) static booleangetBoolean(com.google.gson.JsonObject object, String element) static booleangetBoolean(com.google.gson.JsonObject object, String element, boolean defaultBoolean) static bytestatic bytestatic charstatic charstatic doublestatic doublestatic com.google.gson.JsonElementgetElement(com.google.gson.JsonObject object, String name) static floatstatic floatstatic intstatic intstatic RegistryEntry<Item> static @Nullable RegistryEntry<Item> getItem(com.google.gson.JsonObject object, String key, @Nullable RegistryEntry<Item> defaultValue) static longstatic longstatic com.google.gson.JsonObjectstatic @Nullable com.google.gson.JsonObjectgetObject(com.google.gson.JsonObject object, String element, @Nullable com.google.gson.JsonObject defaultObject) static shortstatic shortstatic Stringstatic @Nullable Stringstatic StringgetType(@Nullable com.google.gson.JsonElement element) static booleanstatic booleanhasBoolean(com.google.gson.JsonObject object, String element) static booleanhasElement(@Nullable com.google.gson.JsonObject object, String element) static booleanhasJsonObject(com.google.gson.JsonObject object, String element) static booleanstatic booleanhasPrimitive(com.google.gson.JsonObject object, String element) static booleanstatic booleanisBoolean(com.google.gson.JsonElement object) static booleanisNumber(com.google.gson.JsonElement element) static booleanisString(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 StringtoSortedString(com.google.gson.JsonElement json) static voidwriteSorted(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 named GSONLnet/minecraft/util/JsonHelper;GSON:Lcom/google/gson/Gson;intermediary field_15657Lnet/minecraft/class_3518;field_15657:Lcom/google/gson/Gson;official aLaxw;a:Lcom/google/gson/Gson;
-
-
Constructor Details
-
JsonHelper
public JsonHelper()
-
-
Method Details
-
hasString
- Mappings:
Namespace Name Mixin selector named hasStringLnet/minecraft/util/JsonHelper;hasString(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_15289Lnet/minecraft/class_3518;method_15289(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isString
public static boolean isString(com.google.gson.JsonElement element) - Mappings:
Namespace Name Mixin selector named isStringLnet/minecraft/util/JsonHelper;isString(Lcom/google/gson/JsonElement;)Zintermediary method_15286Lnet/minecraft/class_3518;method_15286(Lcom/google/gson/JsonElement;)Zofficial aLaxw;a(Lcom/google/gson/JsonElement;)Z
-
hasNumber
- Mappings:
Namespace Name Mixin selector named hasNumberLnet/minecraft/util/JsonHelper;hasNumber(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_34920Lnet/minecraft/class_3518;method_34920(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial bLaxw;b(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isNumber
public static boolean isNumber(com.google.gson.JsonElement element) - Mappings:
Namespace Name Mixin selector named isNumberLnet/minecraft/util/JsonHelper;isNumber(Lcom/google/gson/JsonElement;)Zintermediary method_15275Lnet/minecraft/class_3518;method_15275(Lcom/google/gson/JsonElement;)Zofficial bLaxw;b(Lcom/google/gson/JsonElement;)Z
-
hasBoolean
- Mappings:
Namespace Name Mixin selector named hasBooleanLnet/minecraft/util/JsonHelper;hasBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_15254Lnet/minecraft/class_3518;method_15254(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial cLaxw;c(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isBoolean
public static boolean isBoolean(com.google.gson.JsonElement object) - Mappings:
Namespace Name Mixin selector named isBooleanLnet/minecraft/util/JsonHelper;isBoolean(Lcom/google/gson/JsonElement;)Zintermediary method_34921Lnet/minecraft/class_3518;method_34921(Lcom/google/gson/JsonElement;)Zofficial cLaxw;c(Lcom/google/gson/JsonElement;)Z
-
hasArray
- Mappings:
Namespace Name Mixin selector named hasArrayLnet/minecraft/util/JsonHelper;hasArray(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_15264Lnet/minecraft/class_3518;method_15264(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial dLaxw;d(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasJsonObject
- Mappings:
Namespace Name Mixin selector named hasJsonObjectLnet/minecraft/util/JsonHelper;hasJsonObject(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_34923Lnet/minecraft/class_3518;method_34923(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial eLaxw;e(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasPrimitive
- Mappings:
Namespace Name Mixin selector named hasPrimitiveLnet/minecraft/util/JsonHelper;hasPrimitive(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_15278Lnet/minecraft/class_3518;method_15278(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial fLaxw;f(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 named hasElementLnet/minecraft/util/JsonHelper;hasElement(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_15294Lnet/minecraft/class_3518;method_15294(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial gLaxw;g(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 named getElementLnet/minecraft/util/JsonHelper;getElement(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonElement;intermediary method_52226Lnet/minecraft/class_3518;method_52226(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonElement;official hLaxw;h(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonElement;
-
asString
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/JsonHelper;asString(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;intermediary method_15287Lnet/minecraft/class_3518;method_15287(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;official aLaxw;a(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;
-
getString
- Mappings:
Namespace Name Mixin selector named getStringLnet/minecraft/util/JsonHelper;getString(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;intermediary method_15265Lnet/minecraft/class_3518;method_15265(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;official iLaxw;i(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 named getStringLnet/minecraft/util/JsonHelper;getString(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;intermediary method_15253Lnet/minecraft/class_3518;method_15253(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;official aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
asItem
- Mappings:
Namespace Name Mixin selector named asItemLnet/minecraft/util/JsonHelper;asItem(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_15256Lnet/minecraft/class_3518;method_15256(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lnet/minecraft/class_6880;official bLaxw;b(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljj;
-
getItem
- Mappings:
Namespace Name Mixin selector named getItemLnet/minecraft/util/JsonHelper;getItem(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_15288Lnet/minecraft/class_3518;method_15288(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/class_6880;official jLaxw;j(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljj;
-
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 named getItemLnet/minecraft/util/JsonHelper;getItem(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_34916Lnet/minecraft/class_3518;method_34916(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;official aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljj;)Ljj;
-
asBoolean
- Mappings:
Namespace Name Mixin selector named asBooleanLnet/minecraft/util/JsonHelper;asBoolean(Lcom/google/gson/JsonElement;Ljava/lang/String;)Zintermediary method_15268Lnet/minecraft/class_3518;method_15268(Lcom/google/gson/JsonElement;Ljava/lang/String;)Zofficial cLaxw;c(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
-
getBoolean
- Mappings:
Namespace Name Mixin selector named getBooleanLnet/minecraft/util/JsonHelper;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_15270Lnet/minecraft/class_3518;method_15270(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zofficial kLaxw;k(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 named getBooleanLnet/minecraft/util/JsonHelper;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Zintermediary method_15258Lnet/minecraft/class_3518;method_15258(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Zofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Z
-
asDouble
- Mappings:
Namespace Name Mixin selector named asDoubleLnet/minecraft/util/JsonHelper;asDouble(Lcom/google/gson/JsonElement;Ljava/lang/String;)Dintermediary method_34922Lnet/minecraft/class_3518;method_34922(Lcom/google/gson/JsonElement;Ljava/lang/String;)Dofficial dLaxw;d(Lcom/google/gson/JsonElement;Ljava/lang/String;)D
-
getDouble
- Mappings:
Namespace Name Mixin selector named getDoubleLnet/minecraft/util/JsonHelper;getDouble(Lcom/google/gson/JsonObject;Ljava/lang/String;)Dintermediary method_34927Lnet/minecraft/class_3518;method_34927(Lcom/google/gson/JsonObject;Ljava/lang/String;)Dofficial lLaxw;l(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 named getDoubleLnet/minecraft/util/JsonHelper;getDouble(Lcom/google/gson/JsonObject;Ljava/lang/String;D)Dintermediary method_34915Lnet/minecraft/class_3518;method_34915(Lcom/google/gson/JsonObject;Ljava/lang/String;D)Dofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;D)D
-
asFloat
- Mappings:
Namespace Name Mixin selector named asFloatLnet/minecraft/util/JsonHelper;asFloat(Lcom/google/gson/JsonElement;Ljava/lang/String;)Fintermediary method_15269Lnet/minecraft/class_3518;method_15269(Lcom/google/gson/JsonElement;Ljava/lang/String;)Fofficial eLaxw;e(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
-
getFloat
- Mappings:
Namespace Name Mixin selector named getFloatLnet/minecraft/util/JsonHelper;getFloat(Lcom/google/gson/JsonObject;Ljava/lang/String;)Fintermediary method_15259Lnet/minecraft/class_3518;method_15259(Lcom/google/gson/JsonObject;Ljava/lang/String;)Fofficial mLaxw;m(Lcom/google/gson/JsonObject;Ljava/lang/String;)F
-
getFloat
- Mappings:
Namespace Name Mixin selector named getFloatLnet/minecraft/util/JsonHelper;getFloat(Lcom/google/gson/JsonObject;Ljava/lang/String;F)Fintermediary method_15277Lnet/minecraft/class_3518;method_15277(Lcom/google/gson/JsonObject;Ljava/lang/String;F)Fofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;F)F
-
asLong
- Mappings:
Namespace Name Mixin selector named asLongLnet/minecraft/util/JsonHelper;asLong(Lcom/google/gson/JsonElement;Ljava/lang/String;)Jintermediary method_15263Lnet/minecraft/class_3518;method_15263(Lcom/google/gson/JsonElement;Ljava/lang/String;)Jofficial fLaxw;f(Lcom/google/gson/JsonElement;Ljava/lang/String;)J
-
getLong
- Mappings:
Namespace Name Mixin selector named getLongLnet/minecraft/util/JsonHelper;getLong(Lcom/google/gson/JsonObject;Ljava/lang/String;)Jintermediary method_22449Lnet/minecraft/class_3518;method_22449(Lcom/google/gson/JsonObject;Ljava/lang/String;)Jofficial nLaxw;n(Lcom/google/gson/JsonObject;Ljava/lang/String;)J
-
getLong
- Mappings:
Namespace Name Mixin selector named getLongLnet/minecraft/util/JsonHelper;getLong(Lcom/google/gson/JsonObject;Ljava/lang/String;J)Jintermediary method_15280Lnet/minecraft/class_3518;method_15280(Lcom/google/gson/JsonObject;Ljava/lang/String;J)Jofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;J)J
-
asInt
- Mappings:
Namespace Name Mixin selector named asIntLnet/minecraft/util/JsonHelper;asInt(Lcom/google/gson/JsonElement;Ljava/lang/String;)Iintermediary method_15257Lnet/minecraft/class_3518;method_15257(Lcom/google/gson/JsonElement;Ljava/lang/String;)Iofficial gLaxw;g(Lcom/google/gson/JsonElement;Ljava/lang/String;)I
-
getInt
- Mappings:
Namespace Name Mixin selector named getIntLnet/minecraft/util/JsonHelper;getInt(Lcom/google/gson/JsonObject;Ljava/lang/String;)Iintermediary method_15260Lnet/minecraft/class_3518;method_15260(Lcom/google/gson/JsonObject;Ljava/lang/String;)Iofficial oLaxw;o(Lcom/google/gson/JsonObject;Ljava/lang/String;)I
-
getInt
- Mappings:
Namespace Name Mixin selector named getIntLnet/minecraft/util/JsonHelper;getInt(Lcom/google/gson/JsonObject;Ljava/lang/String;I)Iintermediary method_15282Lnet/minecraft/class_3518;method_15282(Lcom/google/gson/JsonObject;Ljava/lang/String;I)Iofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
-
asByte
- Mappings:
Namespace Name Mixin selector named asByteLnet/minecraft/util/JsonHelper;asByte(Lcom/google/gson/JsonElement;Ljava/lang/String;)Bintermediary method_15293Lnet/minecraft/class_3518;method_15293(Lcom/google/gson/JsonElement;Ljava/lang/String;)Bofficial hLaxw;h(Lcom/google/gson/JsonElement;Ljava/lang/String;)B
-
getByte
- Mappings:
Namespace Name Mixin selector named getByteLnet/minecraft/util/JsonHelper;getByte(Lcom/google/gson/JsonObject;Ljava/lang/String;)Bintermediary method_34929Lnet/minecraft/class_3518;method_34929(Lcom/google/gson/JsonObject;Ljava/lang/String;)Bofficial pLaxw;p(Lcom/google/gson/JsonObject;Ljava/lang/String;)B
-
getByte
- Mappings:
Namespace Name Mixin selector named getByteLnet/minecraft/util/JsonHelper;getByte(Lcom/google/gson/JsonObject;Ljava/lang/String;B)Bintermediary method_15271Lnet/minecraft/class_3518;method_15271(Lcom/google/gson/JsonObject;Ljava/lang/String;B)Bofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;B)B
-
asChar
- Mappings:
Namespace Name Mixin selector named asCharLnet/minecraft/util/JsonHelper;asChar(Lcom/google/gson/JsonElement;Ljava/lang/String;)Cintermediary method_34924Lnet/minecraft/class_3518;method_34924(Lcom/google/gson/JsonElement;Ljava/lang/String;)Cofficial iLaxw;i(Lcom/google/gson/JsonElement;Ljava/lang/String;)C
-
getChar
- Mappings:
Namespace Name Mixin selector named getCharLnet/minecraft/util/JsonHelper;getChar(Lcom/google/gson/JsonObject;Ljava/lang/String;)Cintermediary method_34930Lnet/minecraft/class_3518;method_34930(Lcom/google/gson/JsonObject;Ljava/lang/String;)Cofficial qLaxw;q(Lcom/google/gson/JsonObject;Ljava/lang/String;)C
-
getChar
- Mappings:
Namespace Name Mixin selector named getCharLnet/minecraft/util/JsonHelper;getChar(Lcom/google/gson/JsonObject;Ljava/lang/String;C)Cintermediary method_34914Lnet/minecraft/class_3518;method_34914(Lcom/google/gson/JsonObject;Ljava/lang/String;C)Cofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;C)C
-
asBigDecimal
- Mappings:
Namespace Name Mixin selector named asBigDecimalLnet/minecraft/util/JsonHelper;asBigDecimal(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigDecimal;intermediary method_34925Lnet/minecraft/class_3518;method_34925(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigDecimal;official jLaxw;j(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigDecimal;
-
getBigDecimal
- Mappings:
Namespace Name Mixin selector named getBigDecimalLnet/minecraft/util/JsonHelper;getBigDecimal(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigDecimal;intermediary method_34931Lnet/minecraft/class_3518;method_34931(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigDecimal;official rLaxw;r(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 named getBigDecimalLnet/minecraft/util/JsonHelper;getBigDecimal(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigDecimal;)Ljava/math/BigDecimal;intermediary method_34917Lnet/minecraft/class_3518;method_34917(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigDecimal;)Ljava/math/BigDecimal;official aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
-
asBigInteger
- Mappings:
Namespace Name Mixin selector named asBigIntegerLnet/minecraft/util/JsonHelper;asBigInteger(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigInteger;intermediary method_34926Lnet/minecraft/class_3518;method_34926(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigInteger;official kLaxw;k(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/math/BigInteger;
-
getBigInteger
- Mappings:
Namespace Name Mixin selector named getBigIntegerLnet/minecraft/util/JsonHelper;getBigInteger(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigInteger;intermediary method_34932Lnet/minecraft/class_3518;method_34932(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/math/BigInteger;official sLaxw;s(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 named getBigIntegerLnet/minecraft/util/JsonHelper;getBigInteger(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;intermediary method_34918Lnet/minecraft/class_3518;method_34918(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;official aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger;
-
asShort
- Mappings:
Namespace Name Mixin selector named asShortLnet/minecraft/util/JsonHelper;asShort(Lcom/google/gson/JsonElement;Ljava/lang/String;)Sintermediary method_34928Lnet/minecraft/class_3518;method_34928(Lcom/google/gson/JsonElement;Ljava/lang/String;)Sofficial lLaxw;l(Lcom/google/gson/JsonElement;Ljava/lang/String;)S
-
getShort
- Mappings:
Namespace Name Mixin selector named getShortLnet/minecraft/util/JsonHelper;getShort(Lcom/google/gson/JsonObject;Ljava/lang/String;)Sintermediary method_34933Lnet/minecraft/class_3518;method_34933(Lcom/google/gson/JsonObject;Ljava/lang/String;)Sofficial tLaxw;t(Lcom/google/gson/JsonObject;Ljava/lang/String;)S
-
getShort
- Mappings:
Namespace Name Mixin selector named getShortLnet/minecraft/util/JsonHelper;getShort(Lcom/google/gson/JsonObject;Ljava/lang/String;S)Sintermediary method_34919Lnet/minecraft/class_3518;method_34919(Lcom/google/gson/JsonObject;Ljava/lang/String;S)Sofficial aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;S)S
-
asObject
- Mappings:
Namespace Name Mixin selector named asObjectLnet/minecraft/util/JsonHelper;asObject(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;intermediary method_15295Lnet/minecraft/class_3518;method_15295(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;official mLaxw;m(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 named getObjectLnet/minecraft/util/JsonHelper;getObject(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;intermediary method_15296Lnet/minecraft/class_3518;method_15296(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;official uLaxw;u(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 named getObjectLnet/minecraft/util/JsonHelper;getObject(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;intermediary method_15281Lnet/minecraft/class_3518;method_15281(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;official aLaxw;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;
-
asArray
- Mappings:
Namespace Name Mixin selector named asArrayLnet/minecraft/util/JsonHelper;asArray(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;intermediary method_15252Lnet/minecraft/class_3518;method_15252(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;official nLaxw;n(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;
-
getArray
- Mappings:
Namespace Name Mixin selector named getArrayLnet/minecraft/util/JsonHelper;getArray(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;intermediary method_15261Lnet/minecraft/class_3518;method_15261(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;official vLaxw;v(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 named getArrayLnet/minecraft/util/JsonHelper;getArray(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;intermediary method_15292Lnet/minecraft/class_3518;method_15292(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;intermediary method_15291Lnet/minecraft/class_3518;method_15291(Lcom/google/gson/JsonElement;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;intermediary method_15272Lnet/minecraft/class_3518;method_15272(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Object;Lcom/google/gson/JsonDeserializationContext;Ljava/lang/Class;)Ljava/lang/Object;intermediary method_15283Lnet/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;official aLaxw;a(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 named getTypeLnet/minecraft/util/JsonHelper;getType(Lcom/google/gson/JsonElement;)Ljava/lang/String;intermediary method_15266Lnet/minecraft/class_3518;method_15266(Lcom/google/gson/JsonElement;)Ljava/lang/String;official dLaxw;d(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 named deserializeNullableLnet/minecraft/util/JsonHelper;deserializeNullable(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;intermediary method_47993Lnet/minecraft/class_3518;method_47993(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;intermediary method_15267Lnet/minecraft/class_3518;method_15267(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;Z)Ljava/lang/Object;official bLaxw;b(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 named deserializeNullableLnet/minecraft/util/JsonHelper;deserializeNullable(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;intermediary method_47992Lnet/minecraft/class_3518;method_47992(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;intermediary method_15273Lnet/minecraft/class_3518;method_15273(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;official bLaxw;b(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;intermediary method_15262Lnet/minecraft/class_3518;method_15262(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;Z)Ljava/lang/Object;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;intermediary method_15279Lnet/minecraft/class_3518;method_15279(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;official aLaxw;a(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 named deserializeNullableLnet/minecraft/util/JsonHelper;deserializeNullable(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;intermediary method_47994Lnet/minecraft/class_3518;method_47994(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/Object;official bLaxw;b(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;intermediary method_15297Lnet/minecraft/class_3518;method_15297(Lcom/google/gson/Gson;Ljava/io/Reader;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;official aLaxw;a(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 named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;intermediary method_15290Lnet/minecraft/class_3518;method_15290(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;official aLaxw;a(Lcom/google/gson/Gson;Ljava/lang/String;Lcom/google/gson/reflect/TypeToken;)Ljava/lang/Object;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;intermediary method_15276Lnet/minecraft/class_3518;method_15276(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;official aLaxw;a(Lcom/google/gson/Gson;Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/util/JsonHelper;deserialize(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;intermediary method_15284Lnet/minecraft/class_3518;method_15284(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;official aLaxw;a(Lcom/google/gson/Gson;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/util/JsonHelper;deserialize(Ljava/lang/String;Z)Lcom/google/gson/JsonObject;intermediary method_15298Lnet/minecraft/class_3518;method_15298(Ljava/lang/String;Z)Lcom/google/gson/JsonObject;official aLaxw;a(Ljava/lang/String;Z)Lcom/google/gson/JsonObject;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/util/JsonHelper;deserialize(Ljava/io/Reader;Z)Lcom/google/gson/JsonObject;intermediary method_15274Lnet/minecraft/class_3518;method_15274(Ljava/io/Reader;Z)Lcom/google/gson/JsonObject;official aLaxw;a(Ljava/io/Reader;Z)Lcom/google/gson/JsonObject;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/util/JsonHelper;deserialize(Ljava/lang/String;)Lcom/google/gson/JsonObject;intermediary method_15285Lnet/minecraft/class_3518;method_15285(Ljava/lang/String;)Lcom/google/gson/JsonObject;official aLaxw;a(Ljava/lang/String;)Lcom/google/gson/JsonObject;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/util/JsonHelper;deserialize(Ljava/io/Reader;)Lcom/google/gson/JsonObject;intermediary method_15255Lnet/minecraft/class_3518;method_15255(Ljava/io/Reader;)Lcom/google/gson/JsonObject;official aLaxw;a(Ljava/io/Reader;)Lcom/google/gson/JsonObject;
-
deserializeArray
- Mappings:
Namespace Name Mixin selector named deserializeArrayLnet/minecraft/util/JsonHelper;deserializeArray(Ljava/lang/String;)Lcom/google/gson/JsonArray;intermediary method_43679Lnet/minecraft/class_3518;method_43679(Ljava/lang/String;)Lcom/google/gson/JsonArray;official bLaxw;b(Ljava/lang/String;)Lcom/google/gson/JsonArray;
-
deserializeArray
- Mappings:
Namespace Name Mixin selector named deserializeArrayLnet/minecraft/util/JsonHelper;deserializeArray(Ljava/io/Reader;)Lcom/google/gson/JsonArray;intermediary method_37165Lnet/minecraft/class_3518;method_37165(Ljava/io/Reader;)Lcom/google/gson/JsonArray;official bLaxw;b(Ljava/io/Reader;)Lcom/google/gson/JsonArray;
-
toSortedString
- Mappings:
Namespace Name Mixin selector named toSortedStringLnet/minecraft/util/JsonHelper;toSortedString(Lcom/google/gson/JsonElement;)Ljava/lang/String;intermediary method_43680Lnet/minecraft/class_3518;method_43680(Lcom/google/gson/JsonElement;)Ljava/lang/String;official eLaxw;e(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 named writeSortedLnet/minecraft/util/JsonHelper;writeSorted(Lcom/google/gson/stream/JsonWriter;Lcom/google/gson/JsonElement;Ljava/util/Comparator;)Vintermediary method_43677Lnet/minecraft/class_3518;method_43677(Lcom/google/gson/stream/JsonWriter;Lcom/google/gson/JsonElement;Ljava/util/Comparator;)Vofficial aLaxw;a(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 named sortLnet/minecraft/util/JsonHelper;sort(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/util/Collection;intermediary method_43678Lnet/minecraft/class_3518;method_43678(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/util/Collection;official aLaxw;a(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/util/Collection;
-