Package net.minecraft.client.realms
Class CheckedGson
java.lang.Object
net.minecraft.client.realms.CheckedGson
@Environment(CLIENT) public class CheckedGson extends Object
Checks so that only intended pojos are passed to the GSON (handles
serialization after obfuscation).
- Mappings:
Namespace Name official dmn
intermediary net/minecraft/class_4869
named net/minecraft/client/realms/CheckedGson
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CheckedGson()
-
Method Summary
Modifier and Type Method Description <T extends RealmsSerializable>
TfromJson(String json, Class<T> type)
String
toJson(RealmsSerializable serializable)
-
Field Details
-
GSON
- Mappings:
Namespace Name Mixin selector official a
Ldmn;a:Lcom/google/gson/Gson;
intermediary field_22578
Lnet/minecraft/class_4869;field_22578:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/client/realms/CheckedGson;GSON:Lcom/google/gson/Gson;
-
-
Constructor Details
-
CheckedGson
public CheckedGson()
-
-
Method Details
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Ldmn;a(Ldnd;)Ljava/lang/String;
intermediary method_25037
Lnet/minecraft/class_4869;method_25037(Lnet/minecraft/class_4885;)Ljava/lang/String;
named toJson
Lnet/minecraft/client/realms/CheckedGson;toJson(Lnet/minecraft/client/realms/RealmsSerializable;)Ljava/lang/String;
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Ldmn;a(Ljava/lang/String;Ljava/lang/Class;)Ldnd;
intermediary method_25038
Lnet/minecraft/class_4869;method_25038(Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_4885;
named fromJson
Lnet/minecraft/client/realms/CheckedGson;fromJson(Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/client/realms/RealmsSerializable;
-