Class ServerConfigList.DeSerializer

java.lang.Object
net.minecraft.server.ServerConfigList.DeSerializer
All Implemented Interfaces:
JsonDeserializer<ServerConfigEntry<K>>, JsonSerializer<ServerConfigEntry<K>>
Enclosing class:
ServerConfigList<K,V extends ServerConfigEntry<K>>

class ServerConfigList.DeSerializer extends Object implements JsonDeserializer<ServerConfigEntry<K>>, JsonSerializer<ServerConfigEntry<K>>
Mappings:
Namespace Name
official pp$a
intermediary net/minecraft/class_2134$class_2136
named net/minecraft/server/ServerConfigList$DeSerializer
  • Constructor Details

    • DeSerializer

      private DeSerializer()
  • Method Details

    • serialize

      public JsonElement serialize(ServerConfigEntry<K> serverConfigEntry, Type type, JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface JsonSerializer<ServerConfigEntry<K>>
      Mappings:
      Namespace Name Mixin selector
      official a Lpp$a;a(Lpo;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_8260 Lnet/minecraft/class_2134$class_2136;method_8260(Lnet/minecraft/class_2133;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      named serialize Lnet/minecraft/server/ServerConfigList$DeSerializer;serialize(Lnet/minecraft/server/ServerConfigEntry;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
    • deserialize

      public ServerConfigEntry<K> deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<ServerConfigEntry<K>>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Lpp$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lpo;
      intermediary method_8259 Lnet/minecraft/class_2134$class_2136;method_8259(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_2133;
      named deserialize Lnet/minecraft/server/ServerConfigList$DeSerializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/server/ServerConfigEntry;