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.Login
Nested 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
transferred
Methods inherited from interface org.spongepowered.api.network.EngineConnectionState.Authenticated
profile
-
Method Details
-
player
ServerPlayer player()Gets the associatedplayer
for this connection state.- Specified by:
player
in interfaceEngineConnectionState.Game
- Returns:
- The associated player
-
latency
int latency()Gets the connection latency. This is constantly calculated by the server.- Returns:
- The latency
-