Interface InboundConnection

All Known Subinterfaces:
LoginPhaseConnection, Player

public interface InboundConnection
Represents an incoming connection to the proxy.
  • Method Details

    • getRemoteAddress

      InetSocketAddress getRemoteAddress()
      Returns the player's IP address.
      Returns:
      the player's IP
    • getVirtualHost

      Optional<InetSocketAddress> getVirtualHost()
      Returns the hostname that the user entered into the client, if applicable.
      This is partially processed, including removing a trailing dot, and discarding data after a null byte.
      Returns:
      the hostname from the client
    • getRawVirtualHost

      Optional<String> getRawVirtualHost()
      Returns the raw hostname that the client sent, if applicable.
      Returns:
      the raw hostname from the client
    • isActive

      boolean isActive()
      Determine whether or not the player remains online.
      Returns:
      whether or not the player active
    • getProtocolVersion

      ProtocolVersion getProtocolVersion()
      Returns the current protocol version this connection uses.
      Returns:
      the protocol version the connection uses
    • getProtocolState

      ProtocolState getProtocolState()
      Returns the current protocol state of this connection.
      Returns:
      the protocol state of the connection