Player
, StatusClient
public interface NetworkClient
Modifier and Type | Method | Description |
---|---|---|
InetSocketAddress |
getAddress() |
Returns the socket address of the client.
|
int |
getProtocolVersion() |
Returns the protocol version of the client.
|
InetSocketAddress |
getVirtualHost() |
Returns the virtual host the client is connected to.
|
@NotNull InetSocketAddress getAddress()
int getProtocolVersion()
-1
if unknown@Nullable InetSocketAddress getVirtualHost()
The virtual host refers to the hostname/port the client used to connect to the server.
null
if unknownCopyright © 2020. All rights reserved.