Interface ServerConnection
-
- All Superinterfaces:
ChannelMessageSink,ChannelMessageSource
public interface ServerConnection extends ChannelMessageSource, ChannelMessageSink
Represents a connection to a backend server from the proxy for a client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Playerplayer()Returns the player that this connection is associated with.ServerInfoserverInfo()Returns the server info for this connection.RegisteredServertarget()Returns the server that this connection is connected to.-
Methods inherited from interface com.velocitypowered.api.proxy.messages.ChannelMessageSink
sendPluginMessage
-
-
-
-
Method Detail
-
target
RegisteredServer target()
Returns the server that this connection is connected to.- Returns:
- the server this connection is connected to
-
serverInfo
ServerInfo serverInfo()
Returns the server info for this connection.- Returns:
- the server info for this connection
-
player
Player player()
Returns the player that this connection is associated with.- Returns:
- the player for this connection
-
-