Package net.md_5.bungee.api.connection
Interface Server
- All Superinterfaces:
Connection
Represents a destination which this proxy might connect to.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.md_5.bungee.api.connection.Connection
Connection.Unsafe
-
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Returns the basic information about this server.void
Send data by any available means to this server.Methods inherited from interface net.md_5.bungee.api.connection.Connection
disconnect, disconnect, disconnect, getAddress, getSocketAddress, isConnected, unsafe
-
Method Details
-
getInfo
ServerInfo getInfo()Returns the basic information about this server.- Returns:
- the
ServerInfo
for this server
-
sendData
Send data by any available means to this server. In recent Minecraft versions channel names must contain a colon separator and consist of [a-z0-9/._-]. This will be enforced in a future version. The "BungeeCord" channel is an exception and may only take this form.- Parameters:
channel
- the channel to send this data viadata
- the data to send
-