Interface InboundConnection
-
- All Known Subinterfaces:
Player
public interface InboundConnectionRepresents an incoming connection to the proxy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable InetSocketAddressconnectedHostname()Returns the hostname that the user entered into the client, if applicable.booleanisActive()Determine whether or not the player remains online.ProtocolVersionprotocolVersion()Returns the current protocol version this connection uses.@Nullable SocketAddressremoteAddress()Returns the player's remote address.
-
-
-
Method Detail
-
remoteAddress
@Nullable SocketAddress remoteAddress()
Returns the player's remote address.- Returns:
- the player's remote address
-
connectedHostname
@Nullable InetSocketAddress connectedHostname()
Returns the hostname that the user entered into the client, if applicable.- Returns:
- the hostname from the client
-
isActive
boolean isActive()
Determine whether or not the player remains online.- Returns:
- whether or not the player active
-
protocolVersion
ProtocolVersion protocolVersion()
Returns the current protocol version this connection uses.- Returns:
- the protocol version the connection uses
-
-