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 mb$a
intermediary net/minecraft/class_1661$class_1662
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 Lmb$a;a(Lma;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_6283 Lnet/minecraft/class_1661$class_1662;method_6283(Lnet/minecraft/class_1660;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 Lmb$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lma;
      intermediary method_6282 Lnet/minecraft/class_1661$class_1662;method_6282(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_1660;
      named deserialize Lnet/minecraft/server/ServerConfigList$DeSerializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/server/ServerConfigEntry;