Package net.minecraft.util
Class JsonHelper
java.lang.Object
net.minecraft.util.JsonHelper
public class JsonHelper extends Object
- Mappings:
Namespace Name official niintermediary net/minecraft/class_1693named net/minecraft/util/JsonHelper
-
Constructor Summary
Constructors Constructor Description JsonHelper() -
Method Summary
Modifier and Type Method Description static JsonArrayasArray(JsonElement element, String name)static booleanasBoolean(JsonElement element, String name)static floatasFloat(JsonElement element, String name)static intasInt(JsonElement element, String name)static JsonObjectasObject(JsonElement element, String name)static StringasString(JsonElement element, String name)static JsonArraygetArray(JsonObject object, String element)static JsonArraygetArray(JsonObject object, String name, JsonArray defaultArray)static booleangetBoolean(JsonObject object, String element)static booleangetBoolean(JsonObject object, String element, boolean defaultBoolean)static floatgetFloat(JsonObject object, String element)static floatgetFloat(JsonObject object, String element, float defaultFloat)static intgetInt(JsonObject object, String element)static intgetInt(JsonObject object, String element, int defaultInt)static JsonObjectgetObject(JsonObject object, String element)static JsonObjectgetObject(JsonObject object, String element, JsonObject defaultObject)static StringgetString(JsonObject object, String element)static StringgetString(JsonObject object, String element, String defaultStr)static StringgetType(JsonElement element)static booleanhasArray(JsonObject object, String element)static booleanhasBoolean(JsonObject object, String element)static booleanhasElement(JsonObject object, String lement)static booleanhasPrimitive(JsonObject object, String element)static booleanhasString(JsonObject object, String element)static booleanisString(JsonElement element)
-
Constructor Details
-
JsonHelper
public JsonHelper()
-
-
Method Details
-
hasString
- Mappings:
Namespace Name Mixin selector official aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_6550Lnet/minecraft/class_1693;method_6550(Lcom/google/gson/JsonObject;Ljava/lang/String;)Znamed hasStringLnet/minecraft/util/JsonHelper;hasString(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
isString
- Mappings:
Namespace Name Mixin selector official aLni;a(Lcom/google/gson/JsonElement;)Zintermediary method_6548Lnet/minecraft/class_1693;method_6548(Lcom/google/gson/JsonElement;)Znamed isStringLnet/minecraft/util/JsonHelper;isString(Lcom/google/gson/JsonElement;)Z
-
hasBoolean
- Mappings:
Namespace Name Mixin selector official cLni;c(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_6558Lnet/minecraft/class_1693;method_6558(Lcom/google/gson/JsonObject;Ljava/lang/String;)Znamed hasBooleanLnet/minecraft/util/JsonHelper;hasBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasArray
- Mappings:
Namespace Name Mixin selector official dLni;d(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_6561Lnet/minecraft/class_1693;method_6561(Lcom/google/gson/JsonObject;Ljava/lang/String;)Znamed hasArrayLnet/minecraft/util/JsonHelper;hasArray(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasPrimitive
- Mappings:
Namespace Name Mixin selector official fLni;f(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_6563Lnet/minecraft/class_1693;method_6563(Lcom/google/gson/JsonObject;Ljava/lang/String;)Znamed hasPrimitiveLnet/minecraft/util/JsonHelper;hasPrimitive(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
hasElement
- Mappings:
Namespace Name Mixin selector official gLni;g(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_6564Lnet/minecraft/class_1693;method_6564(Lcom/google/gson/JsonObject;Ljava/lang/String;)Znamed hasElementLnet/minecraft/util/JsonHelper;hasElement(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
asString
- Mappings:
Namespace Name Mixin selector official aLni;a(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;intermediary method_6549Lnet/minecraft/class_1693;method_6549(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;named asStringLnet/minecraft/util/JsonHelper;asString(Lcom/google/gson/JsonElement;Ljava/lang/String;)Ljava/lang/String;
-
getString
- Mappings:
Namespace Name Mixin selector official hLni;h(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;intermediary method_6565Lnet/minecraft/class_1693;method_6565(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;named getStringLnet/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 aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;intermediary method_6555Lnet/minecraft/class_1693;method_6555(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;named getStringLnet/minecraft/util/JsonHelper;getString(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
asBoolean
- Mappings:
Namespace Name Mixin selector official bLni;b(Lcom/google/gson/JsonElement;Ljava/lang/String;)Zintermediary method_6557Lnet/minecraft/class_1693;method_6557(Lcom/google/gson/JsonElement;Ljava/lang/String;)Znamed asBooleanLnet/minecraft/util/JsonHelper;asBoolean(Lcom/google/gson/JsonElement;Ljava/lang/String;)Z
-
getBoolean
- Mappings:
Namespace Name Mixin selector official iLni;i(Lcom/google/gson/JsonObject;Ljava/lang/String;)Zintermediary method_6566Lnet/minecraft/class_1693;method_6566(Lcom/google/gson/JsonObject;Ljava/lang/String;)Znamed getBooleanLnet/minecraft/util/JsonHelper;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Z
-
getBoolean
- Mappings:
Namespace Name Mixin selector official aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Zintermediary method_6556Lnet/minecraft/class_1693;method_6556(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Znamed getBooleanLnet/minecraft/util/JsonHelper;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;Z)Z
-
asFloat
- Mappings:
Namespace Name Mixin selector official dLni;d(Lcom/google/gson/JsonElement;Ljava/lang/String;)Fintermediary method_6560Lnet/minecraft/class_1693;method_6560(Lcom/google/gson/JsonElement;Ljava/lang/String;)Fnamed asFloatLnet/minecraft/util/JsonHelper;asFloat(Lcom/google/gson/JsonElement;Ljava/lang/String;)F
-
getFloat
- Mappings:
Namespace Name Mixin selector official kLni;k(Lcom/google/gson/JsonObject;Ljava/lang/String;)Fintermediary method_6567Lnet/minecraft/class_1693;method_6567(Lcom/google/gson/JsonObject;Ljava/lang/String;)Fnamed getFloatLnet/minecraft/util/JsonHelper;getFloat(Lcom/google/gson/JsonObject;Ljava/lang/String;)F
-
getFloat
- Mappings:
Namespace Name Mixin selector official aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;F)Fintermediary method_6551Lnet/minecraft/class_1693;method_6551(Lcom/google/gson/JsonObject;Ljava/lang/String;F)Fnamed getFloatLnet/minecraft/util/JsonHelper;getFloat(Lcom/google/gson/JsonObject;Ljava/lang/String;F)F
-
asInt
- Mappings:
Namespace Name Mixin selector official fLni;f(Lcom/google/gson/JsonElement;Ljava/lang/String;)Iintermediary method_6562Lnet/minecraft/class_1693;method_6562(Lcom/google/gson/JsonElement;Ljava/lang/String;)Inamed asIntLnet/minecraft/util/JsonHelper;asInt(Lcom/google/gson/JsonElement;Ljava/lang/String;)I
-
getInt
- Mappings:
Namespace Name Mixin selector official mLni;m(Lcom/google/gson/JsonObject;Ljava/lang/String;)Iintermediary method_6570Lnet/minecraft/class_1693;method_6570(Lcom/google/gson/JsonObject;Ljava/lang/String;)Inamed getIntLnet/minecraft/util/JsonHelper;getInt(Lcom/google/gson/JsonObject;Ljava/lang/String;)I
-
getInt
- Mappings:
Namespace Name Mixin selector official aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;I)Iintermediary method_6552Lnet/minecraft/class_1693;method_6552(Lcom/google/gson/JsonObject;Ljava/lang/String;I)Inamed getIntLnet/minecraft/util/JsonHelper;getInt(Lcom/google/gson/JsonObject;Ljava/lang/String;I)I
-
asObject
- Mappings:
Namespace Name Mixin selector official lLni;l(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;intermediary method_6568Lnet/minecraft/class_1693;method_6568(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;named asObjectLnet/minecraft/util/JsonHelper;asObject(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonObject;
-
getObject
- Mappings:
Namespace Name Mixin selector official sLni;s(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;intermediary method_6571Lnet/minecraft/class_1693;method_6571(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonObject;named getObjectLnet/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 aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;intermediary method_6554Lnet/minecraft/class_1693;method_6554(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonObject;)Lcom/google/gson/JsonObject;named getObjectLnet/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 mLni;m(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;intermediary method_6569Lnet/minecraft/class_1693;method_6569(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;named asArrayLnet/minecraft/util/JsonHelper;asArray(Lcom/google/gson/JsonElement;Ljava/lang/String;)Lcom/google/gson/JsonArray;
-
getArray
- Mappings:
Namespace Name Mixin selector official tLni;t(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;intermediary method_6572Lnet/minecraft/class_1693;method_6572(Lcom/google/gson/JsonObject;Ljava/lang/String;)Lcom/google/gson/JsonArray;named getArrayLnet/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 aLni;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;intermediary method_6553Lnet/minecraft/class_1693;method_6553(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;named getArrayLnet/minecraft/util/JsonHelper;getArray(Lcom/google/gson/JsonObject;Ljava/lang/String;Lcom/google/gson/JsonArray;)Lcom/google/gson/JsonArray;
-
getType
- Mappings:
Namespace Name Mixin selector official dLni;d(Lcom/google/gson/JsonElement;)Ljava/lang/String;intermediary method_6559Lnet/minecraft/class_1693;method_6559(Lcom/google/gson/JsonElement;)Ljava/lang/String;named getTypeLnet/minecraft/util/JsonHelper;getType(Lcom/google/gson/JsonElement;)Ljava/lang/String;
-