Class ServerPing.Version
java.lang.Object
com.velocitypowered.api.proxy.server.ServerPing.Version
- Enclosing class:
ServerPing
Represents the version of the server sent to the client. A protocol version
that does not match the client's protocol version will show up on the server
list as an incompatible version, but the client will still permit the user
to connect to the server anyway.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Version
Creates a new instance.- Parameters:
protocol- the protocol version as an integername- a friendly name for the protocol version
-
-
Method Details
-
getProtocol
public int getProtocol()Gets the protocol number associated with the server version.- Returns:
- the protocol version number
-
getName
Gets the user-facing name of the server version.- Returns:
- the version name
-
toString
-
equals
-
hashCode
public int hashCode()
-