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.
  • Method Details

    • player

      ServerPlayer player()
      Gets the associated player for this connection state.
      Specified by:
      player in interface EngineConnectionState.Game
      Returns:
      The associated player
    • latency

      int latency()
      Gets the connection latency. This is constantly calculated by the server.
      Returns:
      The latency