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 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 interface com.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 interface com.google.gson.JsonSerializer<ServerStatus>