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
ConstructorsConstructorDescriptionServerInfo(String name, InetSocketAddress address) Creates a new ServerInfo object. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanfinal InetSocketAddressfinal StringgetName()final inthashCode()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:
compareToin interfaceComparable<ServerInfo>
-