Class JsonHelper

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

public class JsonHelper
extends Object
Mappings:
Namespace Name
official ni
intermediary net/minecraft/class_1693
named net/minecraft/util/JsonHelper
  • Constructor Details

    • JsonHelper

      public JsonHelper()
  • Method Details

    • hasString

      @Environment(CLIENT) public static boolean hasString​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      intermediary method_6550 Lnet/minecraft/class_1693;method_6550(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 Lni;a(Lcom/google/gson/JsonElement;)Z
      intermediary method_6548 Lnet/minecraft/class_1693;method_6548(Lcom/google/gson/JsonElement;)Z
      named isString Lnet/minecraft/util/JsonHelper;isString(Lcom/google/gson/JsonElement;)Z
    • hasBoolean

      @Environment(CLIENT) public static boolean hasBoolean​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official c Lni;c(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      intermediary method_6558 Lnet/minecraft/class_1693;method_6558(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 Lni;d(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      intermediary method_6561 Lnet/minecraft/class_1693;method_6561(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      named hasArray Lnet/minecraft/util/JsonHelper;hasArray(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
    • hasPrimitive

      @Environment(CLIENT) public static boolean hasPrimitive​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official f Lni;f(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      intermediary method_6563 Lnet/minecraft/class_1693;method_6563(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 Lni;g(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      intermediary method_6564 Lnet/minecraft/class_1693;method_6564(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 Lni;a(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_6549 Lnet/minecraft/class_1693;method_6549(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 Lni;h(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_6565 Lnet/minecraft/class_1693;method_6565(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

      @Environment(CLIENT) public static String getString​(JsonObject object, String element, String defaultStr)
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_6555 Lnet/minecraft/class_1693;method_6555(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;
    • asBoolean

      public static boolean asBoolean​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official b Lni;b(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
      intermediary method_6557 Lnet/minecraft/class_1693;method_6557(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
      named asBoolean Lnet/minecraft/util/JsonHelper;asBoolean(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
    • getBoolean

      @Environment(CLIENT) public static boolean getBoolean​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official i Lni;i(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
      intermediary method_6566 Lnet/minecraft/class_1693;method_6566(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 Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Z
      intermediary method_6556 Lnet/minecraft/class_1693;method_6556(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 d Lni;d(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
      intermediary method_6560 Lnet/minecraft/class_1693;method_6560(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
      named asFloat Lnet/minecraft/util/JsonHelper;asFloat(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
    • getFloat

      @Environment(CLIENT) public static float getFloat​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official k Lni;k(Lcom/google/gson/JsonObject;Ljava/lang/String;)F
      intermediary method_6567 Lnet/minecraft/class_1693;method_6567(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 Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;F)F
      intermediary method_6551 Lnet/minecraft/class_1693;method_6551(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
    • asInt

      public static int asInt​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official f Lni;f(Lcom/google/gson/JsonElement;Ljava/lang/String;)I
      intermediary method_6562 Lnet/minecraft/class_1693;method_6562(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 m Lni;m(Lcom/google/gson/JsonObject;Ljava/lang/String;)I
      intermediary method_6570 Lnet/minecraft/class_1693;method_6570(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 Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
      intermediary method_6552 Lnet/minecraft/class_1693;method_6552(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
    • asObject

      public static JsonObject asObject​(JsonElement element, String name)
      Mappings:
      Namespace Name Mixin selector
      official l Lni;l(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;
      intermediary method_6568 Lnet/minecraft/class_1693;method_6568(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

      @Environment(CLIENT) public static JsonObject getObject​(JsonObject object, String element)
      Mappings:
      Namespace Name Mixin selector
      official s Lni;s(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;
      intermediary method_6571 Lnet/minecraft/class_1693;method_6571(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

      @Environment(CLIENT) public static JsonObject getObject​(JsonObject object, String element, JsonObject defaultObject)
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;
      intermediary method_6554 Lnet/minecraft/class_1693;method_6554(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 m Lni;m(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;
      intermediary method_6569 Lnet/minecraft/class_1693;method_6569(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 t Lni;t(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;
      intermediary method_6572 Lnet/minecraft/class_1693;method_6572(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

      @Environment(CLIENT) public static JsonArray getArray​(JsonObject object, String name, JsonArray defaultArray)
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;
      intermediary method_6553 Lnet/minecraft/class_1693;method_6553(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;
    • getType

      public static String getType​(JsonElement element)
      Mappings:
      Namespace Name Mixin selector
      official d Lni;d(Lcom/google/gson/JsonElement;)Ljava/lang/String;
      intermediary method_6559 Lnet/minecraft/class_1693;method_6559(Lcom/google/gson/JsonElement;)Ljava/lang/String;
      named getType Lnet/minecraft/util/JsonHelper;getType(Lcom/google/gson/JsonElement;)Ljava/lang/String;