com.mojang.realmsclient.util

public class JsonUtils

epi
com.mojang.realmsclient.util.JsonUtils
net.minecraft.class_4431
net.minecraft.client.realms.util.JsonUtils
net.minecraft.src.C_3344_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <T> T
a(String arg0, com.google.gson.JsonObject arg1, Function<com.google.gson.JsonObject, T> arg2)
getRequired(String arg0, com.google.gson.JsonObject arg1, Function<com.google.gson.JsonObject, T> arg2)
method_49596(String arg0, com.google.gson.JsonObject arg1, Function<com.google.gson.JsonObject, T> arg2)
get(String key, com.google.gson.JsonObject node, Function<com.google.gson.JsonObject, T> deserializer)
m_274579_(String p_275573_, com.google.gson.JsonObject p_275650_, Function<com.google.gson.JsonObject, T> p_275655_)
public static String
a(String arg0, com.google.gson.JsonObject arg1)
getRequiredString(String arg0, com.google.gson.JsonObject arg1)
method_49594(String arg0, com.google.gson.JsonObject arg1)
getString(String key, com.google.gson.JsonObject node)
m_274305_(String p_275692_, com.google.gson.JsonObject p_275706_)
public static String
a(String arg0, com.google.gson.JsonObject arg1, String arg2)
getStringOr(String arg0, com.google.gson.JsonObject arg1, String arg2)
method_21547(String arg0, com.google.gson.JsonObject arg1, String arg2)
getStringOr(String key, com.google.gson.JsonObject node, String defaultValue)
m_90161_(String p_90162_, com.google.gson.JsonObject p_90163_, String p_90164_)
public static UUID
a(String arg0, com.google.gson.JsonObject arg1, UUID arg2)
getUuidOr(String arg0, com.google.gson.JsonObject arg1, UUID arg2)
method_49595(String arg0, com.google.gson.JsonObject arg1, UUID arg2)
getUuidOr(String key, com.google.gson.JsonObject node, UUID defaultValue)
m_274562_(String p_275342_, com.google.gson.JsonObject p_275515_, UUID p_275232_)
public static int
a(String arg0, com.google.gson.JsonObject arg1, int arg2)
getIntOr(String arg0, com.google.gson.JsonObject arg1, int arg2)
method_21545(String arg0, com.google.gson.JsonObject arg1, int arg2)
getIntOr(String key, com.google.gson.JsonObject node, int defaultValue)
m_90153_(String p_90154_, com.google.gson.JsonObject p_90155_, int p_90156_)
public static long
a(String arg0, com.google.gson.JsonObject arg1, long arg2)
getLongOr(String arg0, com.google.gson.JsonObject arg1, long arg2)
method_21546(String arg0, com.google.gson.JsonObject arg1, long arg2)
getLongOr(String key, com.google.gson.JsonObject node, long defaultValue)
m_90157_(String p_90158_, com.google.gson.JsonObject p_90159_, long p_90160_)
public static boolean
a(String arg0, com.google.gson.JsonObject arg1, boolean arg2)
getBooleanOr(String arg0, com.google.gson.JsonObject arg1, boolean arg2)
method_21548(String arg0, com.google.gson.JsonObject arg1, boolean arg2)
getBooleanOr(String key, com.google.gson.JsonObject node, boolean defaultValue)
m_90165_(String p_90166_, com.google.gson.JsonObject p_90167_, boolean p_90168_)
public static Date
b(String arg0, com.google.gson.JsonObject arg1)
getDateOr(String arg0, com.google.gson.JsonObject arg1)
method_21544(String arg0, com.google.gson.JsonObject arg1)
getDateOr(String key, com.google.gson.JsonObject node)
m_90150_(String p_90151_, com.google.gson.JsonObject p_90152_)