Package net.minecraft.client.realms.util
Class JsonUtils
java.lang.Object
net.minecraft.client.realms.util.JsonUtils
- Mappings:
Namespace Name named net/minecraft/client/realms/util/JsonUtilsintermediary net/minecraft/class_4431official fez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tget(String key, JsonObject node, Function<JsonObject, T> deserializer) static booleangetBooleanOr(String key, JsonObject node, boolean defaultValue) static DategetDateOr(String key, JsonObject node) static intgetIntOr(String key, JsonObject node, int defaultValue) static longgetLongOr(String key, JsonObject node, long defaultValue) static <T> TgetNullable(String key, JsonObject node, Function<JsonObject, T> deserializer) getNullableStringOr(String key, JsonObject node, @Nullable String defaultValue) static StringgetString(String key, JsonObject node) static StringgetStringOr(String key, JsonObject node, String defaultValue) getUuidOr(String key, JsonObject node, @Nullable UUID defaultValue)
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/client/realms/util/JsonUtils;get(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;intermediary method_49596Lnet/minecraft/class_4431;method_49596(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;official aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
-
getNullable
@Nullable public static <T> T getNullable(String key, JsonObject node, Function<JsonObject, T> deserializer) - Mappings:
Namespace Name Mixin selector named getNullableLnet/minecraft/client/realms/util/JsonUtils;getNullable(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;intermediary method_54115Lnet/minecraft/class_4431;method_54115(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;official bLfez;b(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
-
getString
- Mappings:
Namespace Name Mixin selector named getStringLnet/minecraft/client/realms/util/JsonUtils;getString(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;intermediary method_49594Lnet/minecraft/class_4431;method_49594(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;official aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;
-
getStringOr
- Mappings:
Namespace Name Mixin selector named getStringOrLnet/minecraft/client/realms/util/JsonUtils;getStringOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;intermediary method_54577Lnet/minecraft/class_4431;method_54577(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;official aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
-
getNullableStringOr
@Nullable public static @Nullable String getNullableStringOr(String key, JsonObject node, @Nullable @Nullable String defaultValue) - Mappings:
Namespace Name Mixin selector named getNullableStringOrLnet/minecraft/client/realms/util/JsonUtils;getNullableStringOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;intermediary method_21547Lnet/minecraft/class_4431;method_21547(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;official bLfez;b(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
-
getUuidOr
@Nullable public static @Nullable UUID getUuidOr(String key, JsonObject node, @Nullable @Nullable UUID defaultValue) - Mappings:
Namespace Name Mixin selector named getUuidOrLnet/minecraft/client/realms/util/JsonUtils;getUuidOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;intermediary method_49595Lnet/minecraft/class_4431;method_49595(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;official aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;
-
getIntOr
- Mappings:
Namespace Name Mixin selector named getIntOrLnet/minecraft/client/realms/util/JsonUtils;getIntOr(Ljava/lang/String;Lcom/google/gson/JsonObject;I)Iintermediary method_21545Lnet/minecraft/class_4431;method_21545(Ljava/lang/String;Lcom/google/gson/JsonObject;I)Iofficial aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;I)I
-
getLongOr
- Mappings:
Namespace Name Mixin selector named getLongOrLnet/minecraft/client/realms/util/JsonUtils;getLongOr(Ljava/lang/String;Lcom/google/gson/JsonObject;J)Jintermediary method_21546Lnet/minecraft/class_4431;method_21546(Ljava/lang/String;Lcom/google/gson/JsonObject;J)Jofficial aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;J)J
-
getBooleanOr
- Mappings:
Namespace Name Mixin selector named getBooleanOrLnet/minecraft/client/realms/util/JsonUtils;getBooleanOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Zintermediary method_21548Lnet/minecraft/class_4431;method_21548(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Zofficial aLfez;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Z
-
getDateOr
- Mappings:
Namespace Name Mixin selector named getDateOrLnet/minecraft/client/realms/util/JsonUtils;getDateOr(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;intermediary method_21544Lnet/minecraft/class_4431;method_21544(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;official bLfez;b(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;
-