Class ServerInfo
java.lang.Object
com.velocitypowered.api.proxy.server.ServerInfo
- All Implemented Interfaces:
Comparable<ServerInfo>
ServerInfo represents a server that a player can connect to. This object is immutable and safe
for concurrent access.
-
Constructor Summary
ConstructorDescriptionServerInfo
(String name, InetSocketAddress address) Creates a new ServerInfo object. -
Method Summary
Modifier and TypeMethodDescriptionint
final boolean
final InetSocketAddress
final String
getName()
final int
hashCode()
toString()
-
Constructor Details
-
ServerInfo
Creates a new ServerInfo object.- Parameters:
name
- the name for the serveraddress
- the address of the server to connect to
-
-
Method Details
-
getName
-
getAddress
-
toString
-
equals
-
hashCode
public final int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<ServerInfo>
-