Class JsonUtils

java.lang.Object
com.mojang.realmsclient.util.JsonUtils

public class JsonUtils extends Object
  • Constructor Details

    • JsonUtils

      public JsonUtils()
  • Method Details

    • getRequired

      public static <T> T getRequired(String p_275573_, com.google.gson.JsonObject p_275650_, Function<com.google.gson.JsonObject,T> p_275655_)
    • getRequiredString

      public static String getRequiredString(String p_275692_, com.google.gson.JsonObject p_275706_)
    • getStringOr

      @Nullable public static String getStringOr(String p_90162_, com.google.gson.JsonObject p_90163_, @Nullable String p_90164_)
    • getUuidOr

      @Nullable public static UUID getUuidOr(String p_275342_, com.google.gson.JsonObject p_275515_, @Nullable UUID p_275232_)
    • getIntOr

      public static int getIntOr(String p_90154_, com.google.gson.JsonObject p_90155_, int p_90156_)
    • getLongOr

      public static long getLongOr(String p_90158_, com.google.gson.JsonObject p_90159_, long p_90160_)
    • getBooleanOr

      public static boolean getBooleanOr(String p_90166_, com.google.gson.JsonObject p_90167_, boolean p_90168_)
    • getDateOr

      public static Date getDateOr(String p_90151_, com.google.gson.JsonObject p_90152_)