Class ServerStatus.Players.Serializer

java.lang.Object
net.minecraft.network.protocol.status.ServerStatus.Players.Serializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<ServerStatus.Players>, com.google.gson.JsonSerializer<ServerStatus.Players>
Enclosing class:
ServerStatus.Players

public static class ServerStatus.Players.Serializer extends Object implements com.google.gson.JsonDeserializer<ServerStatus.Players>, com.google.gson.JsonSerializer<ServerStatus.Players>
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public ServerStatus.Players deserialize(com.google.gson.JsonElement p_134930_, Type p_134931_, com.google.gson.JsonDeserializationContext p_134932_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<ServerStatus.Players>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(ServerStatus.Players p_134934_, Type p_134935_, com.google.gson.JsonSerializationContext p_134936_)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<ServerStatus.Players>