Package net.minecraft.server
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$aintermediary net/minecraft/class_2134$class_2136named net/minecraft/server/ServerConfigList$DeSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) serialize(ServerConfigEntry<K> serverConfigEntry, Type type, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
DeSerializer
private DeSerializer()
-
-
Method Details
-
serialize
public JsonElement serialize(ServerConfigEntry<K> serverConfigEntry, Type type, JsonSerializationContext jsonSerializationContext) - Specified by:
serializein interfaceJsonSerializer<ServerConfigEntry<K>>- Mappings:
Namespace Name Mixin selector official aLmb$a;a(Lma;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;intermediary method_8260Lnet/minecraft/class_2134$class_2136;method_8260(Lnet/minecraft/class_2133;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;named serializeLnet/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:
deserializein interfaceJsonDeserializer<ServerConfigEntry<K>>- Throws:
JsonParseException- Mappings:
Namespace Name Mixin selector official aLmb$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lma;intermediary method_8259Lnet/minecraft/class_2134$class_2136;method_8259(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_2133;named deserializeLnet/minecraft/server/ServerConfigList$DeSerializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/server/ServerConfigEntry;
-