public interface InboundConnection
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
getProtocolVersion()
Returns the current protocol version this connection uses.
|
InetSocketAddress |
getRemoteAddress()
Returns the player's IP address.
|
Optional<InetSocketAddress> |
getVirtualHost()
Returns the hostname that the user entered into the client, if applicable.
|
boolean |
isActive()
Determine whether or not the player remains online.
|
InetSocketAddress getRemoteAddress()
Optional<InetSocketAddress> getVirtualHost()
boolean isActive()
ProtocolVersion getProtocolVersion()