Package net.minecraft.client.realms.util
Class JsonUtils
java.lang.Object
net.minecraft.client.realms.util.JsonUtils
- Mappings:
Namespace Name official emb
intermediary net/minecraft/class_4431
named net/minecraft/client/realms/util/JsonUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
get
(String key, JsonObject node, Function<JsonObject, T> deserializer) static boolean
getBooleanOr
(String key, JsonObject node, boolean defaultValue) static Date
getDateOr
(String key, JsonObject node) static int
getIntOr
(String key, JsonObject node, int defaultValue) static long
getLongOr
(String key, JsonObject node, long defaultValue) static String
getString
(String key, JsonObject node) getStringOr
(String key, JsonObject node, @Nullable String defaultValue) getUuidOr
(String key, JsonObject node, @Nullable UUID defaultValue)
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
intermediary method_49596
Lnet/minecraft/class_4431;method_49596(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
named get
Lnet/minecraft/client/realms/util/JsonUtils;get(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
-
getString
- Mappings:
Namespace Name Mixin selector official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;
intermediary method_49594
Lnet/minecraft/class_4431;method_49594(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;
named getString
Lnet/minecraft/client/realms/util/JsonUtils;getString(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;
-
getStringOr
@Nullable public static @Nullable String getStringOr(String key, JsonObject node, @Nullable @Nullable String defaultValue) - Mappings:
Namespace Name Mixin selector official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
intermediary method_21547
Lnet/minecraft/class_4431;method_21547(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
named getStringOr
Lnet/minecraft/client/realms/util/JsonUtils;getStringOr(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 official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;
intermediary method_49595
Lnet/minecraft/class_4431;method_49595(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;
named getUuidOr
Lnet/minecraft/client/realms/util/JsonUtils;getUuidOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;
-
getIntOr
- Mappings:
Namespace Name Mixin selector official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;I)I
intermediary method_21545
Lnet/minecraft/class_4431;method_21545(Ljava/lang/String;Lcom/google/gson/JsonObject;I)I
named getIntOr
Lnet/minecraft/client/realms/util/JsonUtils;getIntOr(Ljava/lang/String;Lcom/google/gson/JsonObject;I)I
-
getLongOr
- Mappings:
Namespace Name Mixin selector official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;J)J
intermediary method_21546
Lnet/minecraft/class_4431;method_21546(Ljava/lang/String;Lcom/google/gson/JsonObject;J)J
named getLongOr
Lnet/minecraft/client/realms/util/JsonUtils;getLongOr(Ljava/lang/String;Lcom/google/gson/JsonObject;J)J
-
getBooleanOr
- Mappings:
Namespace Name Mixin selector official a
Lemb;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Z
intermediary method_21548
Lnet/minecraft/class_4431;method_21548(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Z
named getBooleanOr
Lnet/minecraft/client/realms/util/JsonUtils;getBooleanOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Z
-
getDateOr
- Mappings:
Namespace Name Mixin selector official b
Lemb;b(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;
intermediary method_21544
Lnet/minecraft/class_4431;method_21544(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;
named getDateOr
Lnet/minecraft/client/realms/util/JsonUtils;getDateOr(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;
-