Package net.minecraft.client.realms.util
Class JsonUtils
java.lang.Object
net.minecraft.client.realms.util.JsonUtils
- Mappings:
Namespace Name official ektintermediary net/minecraft/class_4431named net/minecraft/client/realms/util/JsonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) getStringOr(String key, JsonObject node, @Nullable String defaultValue) static Stringmethod_49594(String string, JsonObject jsonObject) method_49595(String string, JsonObject jsonObject, @Nullable UUID uUID) static <T> Tmethod_49596(String string, JsonObject jsonObject, Function<JsonObject, T> function)
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
method_49596
public static <T> T method_49596(String string, JsonObject jsonObject, Function<JsonObject, T> function) - Mappings:
Namespace Name Mixin selector official aLekt;a(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;named method_49596Lnet/minecraft/client/realms/util/JsonUtils;method_49596(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
-
method_49594
- Mappings:
Namespace Name Mixin selector official aLekt;a(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;named method_49594Lnet/minecraft/client/realms/util/JsonUtils;method_49594(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 aLekt;a(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;named getStringOrLnet/minecraft/client/realms/util/JsonUtils;getStringOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
-
method_49595
@Nullable public static @Nullable UUID method_49595(String string, JsonObject jsonObject, @Nullable @Nullable UUID uUID) - Mappings:
Namespace Name Mixin selector official aLekt;a(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;named method_49595Lnet/minecraft/client/realms/util/JsonUtils;method_49595(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;
-
getIntOr
- Mappings:
Namespace Name Mixin selector official aLekt;a(Ljava/lang/String;Lcom/google/gson/JsonObject;I)Iintermediary method_21545Lnet/minecraft/class_4431;method_21545(Ljava/lang/String;Lcom/google/gson/JsonObject;I)Inamed getIntOrLnet/minecraft/client/realms/util/JsonUtils;getIntOr(Ljava/lang/String;Lcom/google/gson/JsonObject;I)I
-
getLongOr
- Mappings:
Namespace Name Mixin selector official aLekt;a(Ljava/lang/String;Lcom/google/gson/JsonObject;J)Jintermediary method_21546Lnet/minecraft/class_4431;method_21546(Ljava/lang/String;Lcom/google/gson/JsonObject;J)Jnamed getLongOrLnet/minecraft/client/realms/util/JsonUtils;getLongOr(Ljava/lang/String;Lcom/google/gson/JsonObject;J)J
-
getBooleanOr
- Mappings:
Namespace Name Mixin selector official aLekt;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Zintermediary method_21548Lnet/minecraft/class_4431;method_21548(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Znamed getBooleanOrLnet/minecraft/client/realms/util/JsonUtils;getBooleanOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Z
-
getDateOr
- Mappings:
Namespace Name Mixin selector official bLekt;b(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;named getDateOrLnet/minecraft/client/realms/util/JsonUtils;getDateOr(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;
-