Package net.minecraft.network
Class ServerStatusResponse.Version.Serializer
java.lang.Object
net.minecraft.network.ServerStatusResponse.Version.Serializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ServerStatusResponse.Version>
,com.google.gson.JsonSerializer<ServerStatusResponse.Version>
- Enclosing class:
- ServerStatusResponse.Version
public static class ServerStatusResponse.Version.Serializer
extends Object
implements com.google.gson.JsonDeserializer<ServerStatusResponse.Version>, com.google.gson.JsonSerializer<ServerStatusResponse.Version>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) com.google.gson.JsonElement
serialize
(ServerStatusResponse.Version p_serialize_1_, Type p_serialize_2_, com.google.gson.JsonSerializationContext p_serialize_3_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public ServerStatusResponse.Version deserialize(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ServerStatusResponse.Version>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(ServerStatusResponse.Version p_serialize_1_, Type p_serialize_2_, com.google.gson.JsonSerializationContext p_serialize_3_) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<ServerStatusResponse.Version>
-