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