Package net.md_5.bungee.api.connection
Interface Server
-
- All Superinterfaces:
Connection
public interface Server extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerInfo
getInfo()
Returns the basic information about this server.void
sendData(String channel, byte[] data)
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 Detail
-
getInfo
ServerInfo getInfo()
Returns the basic information about this server.- Returns:
- the
ServerInfo
for this server
-
sendData
void sendData(String channel, byte[] data)
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
-
-