Class JsonHelper

java.lang.Object
net.minecraft.util.JsonHelper

public class JsonHelper
extends Object
Mappings:
Namespace Name
official afv
intermediary net/minecraft/class_3518
named net/minecraft/util/JsonHelper
  • Field Details

    • GSON

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static boolean hasString​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      @Environment(CLIENT) public static boolean isString​(JsonElement element)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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
    • isNumber

      public static boolean isNumber​(JsonElement element)
      Mappings:
      Namespace Name Mixin selector
      official b Lafv;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

      @Environment(CLIENT) public static boolean hasBoolean​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official c Lafv;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
    • hasArray

      public static boolean hasArray​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official d Lafv;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
    • hasPrimitive

      public static boolean hasPrimitive​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official f Lafv;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​(JsonObject object, String lement)
      Mappings:
      Namespace Name Mixin selector
      official g Lafv;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
    • asString

      public static String asString​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static String getString​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official h Lafv;h(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

      public static String getString​(JsonObject object, String element, String defaultStr)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static Item asItem​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official b Lafv;b(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lbnr;
      intermediary method_15256 Lnet/minecraft/class_3518;method_15256(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lnet/minecraft/class_1792;
      named asItem Lnet/minecraft/util/JsonHelper;asItem(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lnet/minecraft/item/Item;
    • getItem

      public static Item getItem​(JsonObject object, String key)
      Mappings:
      Namespace Name Mixin selector
      official i Lafv;i(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lbnr;
      intermediary method_15288 Lnet/minecraft/class_3518;method_15288(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/class_1792;
      named getItem Lnet/minecraft/util/JsonHelper;getItem(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lnet/minecraft/item/Item;
    • asBoolean

      public static boolean asBoolean​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official c Lafv;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

      public static boolean getBoolean​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official j Lafv;j(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​(JsonObject object, String element, boolean defaultBoolean)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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
    • asFloat

      public static float asFloat​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official e Lafv;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

      public static float getFloat​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official l Lafv;l(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

      public static float getFloat​(JsonObject object, String element, float defaultFloat)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static long asLong​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official f Lafv;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

      public static long getLong​(JsonObject object, String name)
      Mappings:
      Namespace Name Mixin selector
      official m Lafv;m(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

      public static long getLong​(JsonObject object, String element, long defaultLong)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static int asInt​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official g Lafv;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

      public static int getInt​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official n Lafv;n(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

      public static int getInt​(JsonObject object, String element, int defaultInt)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static byte asByte​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official h Lafv;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

      public static byte getByte​(JsonObject object, String element, byte defaultByte)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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
    • asObject

      public static JsonObject asObject​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official m Lafv;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 JsonObject getObject​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official t Lafv;t(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

      public static JsonObject getObject​(JsonObject object, String element, JsonObject defaultObject)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static JsonArray asArray​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official n Lafv;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

      public static JsonArray getArray​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official u Lafv;u(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

      @Nullable public static JsonArray getArray​(JsonObject object, String name, @Nullable JsonArray defaultArray)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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 JsonElement element, String name, JsonDeserializationContext context, Class<? extends T> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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​(JsonObject object, String element, JsonDeserializationContext context, Class<? extends T> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static <T> T deserialize​(JsonObject object, String element, T defaultValue, JsonDeserializationContext context, Class<? extends T> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static String getType​(JsonElement element)
      Mappings:
      Namespace Name Mixin selector
      official d Lafv;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;
    • deserialize

      @Nullable public static <T> T deserialize​(Gson gson, Reader reader, Class<T> type, boolean lenient)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;a(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;
    • deserialize

      @Environment(CLIENT) @Nullable public static <T> T deserialize​(Gson gson, Reader reader, TypeToken<T> typeToken, boolean lenient)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;a(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

      @Environment(CLIENT) @Nullable public static <T> T deserialize​(Gson gson, String content, TypeToken<T> typeToken, boolean lenient)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      @Nullable public static <T> T deserialize​(Gson gson, String content, Class<T> class2, boolean lenient)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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;
    • deserialize

      @Environment(CLIENT) @Nullable public static <T> T deserialize​(Gson gson, Reader reader, TypeToken<T> typeToken)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      @Environment(CLIENT) @Nullable public static <T> T deserialize​(Gson gson, String content, TypeToken<T> typeToken)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      @Nullable public static <T> T deserialize​(Gson gson, Reader reader, Class<T> class2)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      @Nullable public static <T> T deserialize​(Gson gson, String content, Class<T> class2)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static JsonObject deserialize​(String content, boolean lenient)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static JsonObject deserialize​(Reader reader, boolean lenient)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static JsonObject deserialize​(String content)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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

      public static JsonObject deserialize​(Reader reader)
      Mappings:
      Namespace Name Mixin selector
      official a Lafv;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;