类 JsonUtils
- java.lang.Object
-
- net.minecraft.client.realms.util.JsonUtils
-
@Environment(CLIENT) public class JsonUtils extends Object
- Mappings:
Namespace Name official dsxintermediary net/minecraft/class_4431named net/minecraft/client/realms/util/JsonUtils
-
-
构造器概要
构造器 构造器 说明 JsonUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static 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)static StringgetStringOr(String key, JsonObject node, String defaultValue)
-
-
-
方法详细资料
-
getStringOr
public static String getStringOr(String key, JsonObject node, String defaultValue)
- Mappings:
Namespace Name Mixin selector official aLdsx;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;
-
getIntOr
public static int getIntOr(String key, JsonObject node, int defaultValue)
- Mappings:
Namespace Name Mixin selector official aLdsx;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
public static long getLongOr(String key, JsonObject node, long defaultValue)
- Mappings:
Namespace Name Mixin selector official aLdsx;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
public static boolean getBooleanOr(String key, JsonObject node, boolean defaultValue)
- Mappings:
Namespace Name Mixin selector official aLdsx;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
public static Date getDateOr(String key, JsonObject node)
- Mappings:
Namespace Name Mixin selector official aLdsx;a(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;
-
-