Class ServerStatus.Version.Serializer
java.lang.Object
net.minecraft.network.protocol.status.ServerStatus.Version.Serializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ServerStatus.Version>
,com.google.gson.JsonSerializer<ServerStatus.Version>
- Enclosing class:
- ServerStatus.Version
public static class ServerStatus.Version.Serializer
extends Object
implements com.google.gson.JsonDeserializer<ServerStatus.Version>, com.google.gson.JsonSerializer<ServerStatus.Version>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_134971_, Type p_134972_, com.google.gson.JsonDeserializationContext p_134973_) com.google.gson.JsonElement
serialize
(ServerStatus.Version p_134975_, Type p_134976_, com.google.gson.JsonSerializationContext p_134977_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public ServerStatus.Version deserialize(com.google.gson.JsonElement p_134971_, Type p_134972_, com.google.gson.JsonDeserializationContext p_134973_) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<ServerStatus.Version>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(ServerStatus.Version p_134975_, Type p_134976_, com.google.gson.JsonSerializationContext p_134977_) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<ServerStatus.Version>
-