Class JsonUtils

java.lang.Object
net.minecraft.client.realms.util.JsonUtils

@Environment(CLIENT) public class JsonUtils extends Object
Mappings:
Namespace Name
named net/minecraft/client/realms/util/JsonUtils
intermediary net/minecraft/class_4431
official fks
  • Constructor Details

    • JsonUtils

      public JsonUtils()
  • Method Details

    • get

      public static <T> T get(String key, JsonObject node, Function<JsonObject,T> deserializer)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/client/realms/util/JsonUtils;get(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;
      official a Lfks;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 getNullable Lnet/minecraft/client/realms/util/JsonUtils;getNullable(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
      intermediary method_54115 Lnet/minecraft/class_4431;method_54115(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
      official b Lfks;b(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/function/Function;)Ljava/lang/Object;
    • getString

      public static String getString(String key, JsonObject node)
      Mappings:
      Namespace Name Mixin selector
      named getString Lnet/minecraft/client/realms/util/JsonUtils;getString(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;
      official a Lfks;a(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/lang/String;
    • getStringOr

      public static String getStringOr(String key, JsonObject node, String defaultValue)
      Mappings:
      Namespace Name Mixin selector
      named getStringOr Lnet/minecraft/client/realms/util/JsonUtils;getStringOr(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_54577 Lnet/minecraft/class_4431;method_54577(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/String;
      official a Lfks;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 getNullableStringOr Lnet/minecraft/client/realms/util/JsonUtils;getNullableStringOr(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;
      official b Lfks;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 getUuidOr Lnet/minecraft/client/realms/util/JsonUtils;getUuidOr(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;
      official a Lfks;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Ljava/util/UUID;)Ljava/util/UUID;
    • getIntOr

      public static int getIntOr(String key, JsonObject node, int defaultValue)
      Mappings:
      Namespace Name Mixin selector
      named getIntOr Lnet/minecraft/client/realms/util/JsonUtils;getIntOr(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
      official a Lfks;a(Ljava/lang/String;Lcom/google/gson/JsonObject;I)I
    • getLongOr

      public static long getLongOr(String key, JsonObject node, long defaultValue)
      Mappings:
      Namespace Name Mixin selector
      named getLongOr Lnet/minecraft/client/realms/util/JsonUtils;getLongOr(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
      official a Lfks;a(Ljava/lang/String;Lcom/google/gson/JsonObject;J)J
    • getBooleanOr

      public static boolean getBooleanOr(String key, JsonObject node, boolean defaultValue)
      Mappings:
      Namespace Name Mixin selector
      named getBooleanOr Lnet/minecraft/client/realms/util/JsonUtils;getBooleanOr(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
      official a Lfks;a(Ljava/lang/String;Lcom/google/gson/JsonObject;Z)Z
    • getDateOr

      public static Date getDateOr(String key, JsonObject node)
      Mappings:
      Namespace Name Mixin selector
      named getDateOr Lnet/minecraft/client/realms/util/JsonUtils;getDateOr(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;
      official b Lfks;b(Ljava/lang/String;Lcom/google/gson/JsonObject;)Ljava/util/Date;