public interface StatusClient
StatusResponse
. Unlike normal player
connections, it may not have the same version as the server.Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress()
Gets the address of the client.
|
MinecraftVersion |
getVersion()
Gets the game version of the client.
|
Optional<InetSocketAddress> |
getVirtualHost()
Gets the address the player is connecting to.
|
InetSocketAddress getAddress()
MinecraftVersion getVersion()
Optional<InetSocketAddress> getVirtualHost()
Optional.empty()
if not available (for example because
of MinecraftVersion.isLegacy()
).