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