Interface ServerPlayerConnection

All Superinterfaces:
EngineConnection, PlayerConnection, RemoteConnection, ServerSideConnection

public interface ServerPlayerConnection extends PlayerConnection, ServerSideConnection
Represents a connection of a client to the server where the ServerPlayer has successfully joined.
  • Method Details

    • player

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

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