Package org.spongepowered.api.network
Interface ServerConnectionState.Game
- All Superinterfaces:
EngineConnectionState,EngineConnectionState.Authenticated,EngineConnectionState.Game,ServerConnectionState,ServerConnectionState.Authenticated
- Enclosing interface:
ServerConnectionState
public static interface ServerConnectionState.Game
extends EngineConnectionState.Game, ServerConnectionState.Authenticated
Represents a game state between a minecraft client and server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.network.EngineConnectionState
EngineConnectionState.Authenticated, EngineConnectionState.Configuration, EngineConnectionState.Game, EngineConnectionState.Intent, EngineConnectionState.LoginNested classes/interfaces inherited from interface org.spongepowered.api.network.ServerConnectionState
ServerConnectionState.Authenticated, ServerConnectionState.Configuration, ServerConnectionState.Game, ServerConnectionState.Intent, ServerConnectionState.Login -
Method Summary
Methods inherited from interface org.spongepowered.api.network.EngineConnectionState
transferredMethods inherited from interface org.spongepowered.api.network.EngineConnectionState.Authenticated
profile
-
Method Details
-
player
ServerPlayer player()Gets the associatedplayerfor this connection state.- Specified by:
playerin interfaceEngineConnectionState.Game- Returns:
- The associated player
-
latency
int latency()Gets the connection latency. This is constantly calculated by the server.- Returns:
- The latency
-