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
named net/minecraft/client/realms/CheckedGson
intermediary net/minecraft/class_4869
official fbm
  • Field Details

    • GSON

      private final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      named GSON Lnet/minecraft/client/realms/CheckedGson;GSON:Lcom/google/gson/Gson;
      intermediary field_22578 Lnet/minecraft/class_4869;field_22578:Lcom/google/gson/Gson;
      official a Lfbm;a:Lcom/google/gson/Gson;
  • Constructor Details

    • CheckedGson

      public CheckedGson()
  • Method Details

    • toJson

      public String toJson(RealmsSerializable serializable)
      Mappings:
      Namespace Name Mixin selector
      named toJson Lnet/minecraft/client/realms/CheckedGson;toJson(Lnet/minecraft/client/realms/RealmsSerializable;)Ljava/lang/String;
      intermediary method_25037 Lnet/minecraft/class_4869;method_25037(Lnet/minecraft/class_4885;)Ljava/lang/String;
      official a Lfbm;a(Lfce;)Ljava/lang/String;
    • toJson

      public String toJson(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      named toJson Lnet/minecraft/client/realms/CheckedGson;toJson(Lcom/google/gson/JsonElement;)Ljava/lang/String;
      intermediary method_49573 Lnet/minecraft/class_4869;method_49573(Lcom/google/gson/JsonElement;)Ljava/lang/String;
      official a Lfbm;a(Lcom/google/gson/JsonElement;)Ljava/lang/String;
    • fromJson

      @Nullable public <T extends RealmsSerializable> T fromJson(String json, Class<T> type)
      Mappings:
      Namespace Name Mixin selector
      named fromJson Lnet/minecraft/client/realms/CheckedGson;fromJson(Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/client/realms/RealmsSerializable;
      intermediary method_25038 Lnet/minecraft/class_4869;method_25038(Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_4885;
      official a Lfbm;a(Ljava/lang/String;Ljava/lang/Class;)Lfce;