Package org.spongepowered.api.network
Interface ServerPlayerConnection
-
- All Superinterfaces:
EngineConnection,PlayerConnection,RemoteConnection,ServerSideConnection
public interface ServerPlayerConnection extends PlayerConnection, ServerSideConnection
Represents a connection of a client to the server where theServerPlayerhas successfully joined.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intlatency()Gets the connection latency.ServerPlayerplayer()Gets the associatedplayerfor this connection.-
Methods inherited from interface org.spongepowered.api.network.EngineConnection
close, close
-
Methods inherited from interface org.spongepowered.api.network.RemoteConnection
address, virtualHost
-
Methods inherited from interface org.spongepowered.api.network.ServerSideConnection
profile, side
-
-
-
-
Method Detail
-
player
ServerPlayer player()
Gets the associatedplayerfor this connection.- Specified by:
playerin interfacePlayerConnection- Returns:
- The associated player
-
latency
int latency()
Gets the connection latency. This is constantly calculated by the server.- Returns:
- The latency
-
-