Package net.minecraft.server
Class ServerMetadata.Deserializer
java.lang.Object
net.minecraft.server.ServerMetadata.Deserializer
- All Implemented Interfaces:
JsonDeserializer<ServerMetadata>
,JsonSerializer<ServerMetadata>
- Enclosing class:
- ServerMetadata
public static class ServerMetadata.Deserializer extends Object implements JsonDeserializer<ServerMetadata>, JsonSerializer<ServerMetadata>
-
Constructor Summary
Constructors Constructor Description Deserializer()
-
Method Summary
Modifier and Type Method Description ServerMetadata
deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
JsonElement
serialize(ServerMetadata serverMetadata, Type type, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
deserialize
public ServerMetadata deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException- Specified by:
deserialize
in interfaceJsonDeserializer<ServerMetadata>
- Throws:
JsonParseException
-
serialize
public JsonElement serialize(ServerMetadata serverMetadata, Type type, JsonSerializationContext jsonSerializationContext)- Specified by:
serialize
in interfaceJsonSerializer<ServerMetadata>
-