Interface Connection

All Known Subinterfaces:
Player

public interface Connection
Represents a connection to the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull SocketAddress
    Gets the address of the connection.
    int
    Gets the protocol version of the client connection.
  • Method Details

    • protocolVersion

      int protocolVersion()
      Gets the protocol version of the client connection.
      Returns:
      the protocol version
      Since:
      1.0.0
    • address

      @NotNull @NotNull SocketAddress address()
      Gets the address of the connection.
      Returns:
      the address
      Since:
      1.0.0