Interface InboundConnection

  • All Known Subinterfaces:
    LoginPhaseConnection, Player

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

      • getRemoteAddress

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

        Optional<InetSocketAddress> getVirtualHost()
        Returns the hostname that the user entered into the client, if applicable.
        the hostname from the client
      • isActive

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

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