Package org.spongepowered.api.network
Interface ServerPlayerConnection
- All Superinterfaces:
EngineConnection
,PlayerConnection
,RemoteConnection
,ServerSideConnection
Represents a connection of a client to the server where
the
ServerPlayer
has successfully joined.-
Method Summary
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 Details
-
player
ServerPlayer player()Gets the associatedplayer
for this connection.- Specified by:
player
in interfacePlayerConnection
- Returns:
- The associated player
-
latency
int latency()Gets the connection latency. This is constantly calculated by the server.- Returns:
- The latency
-