Class ServerPing.Version

java.lang.Object
com.velocitypowered.api.proxy.server.ServerPing.Version
Enclosing class:
ServerPing

public static final class ServerPing.Version extends Object
  • Constructor Details

    • Version

      public Version(int protocol, String name)
      Creates a new instance.
      Parameters:
      protocol - the protocol version as an integer
      name - a friendly name for the protocol version
  • Method Details

    • getProtocol

      public int getProtocol()
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object