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, closeMethods inherited from interface org.spongepowered.api.network.RemoteConnection
address, virtualHostMethods inherited from interface org.spongepowered.api.network.ServerSideConnection
profile, side
-
Method Details
-
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
-