Interface ClientPingServerEvent.Response.Version

All Superinterfaces:
Comparable<MinecraftVersion>, MinecraftVersion
Enclosing interface:
ClientPingServerEvent.Response

public static interface ClientPingServerEvent.Response.Version extends MinecraftVersion
Represents the information about the version of the server, sent after the ClientPingServerEvent.
  • Method Details

    • setName

      void setName(String name)
      Sets the name of the version of the server. This is usually displayed on the client if the server is using an incompatible protocol version.
      Parameters:
      name - The new display name of the server version
    • setProtocolVersion

      void setProtocolVersion(int protocolVersion)
      Sets the server protocol version reported to the client. Modifying this will change if the client sees the server as incompatible or not, forcing it to display the MinecraftVersion.name().
      Parameters:
      protocolVersion - The new server protocol version
      See Also: