Interface StatusClient
public interface StatusClient
Represents a client requesting a
StatusResponse
. Unlike normal player
connections, it may not have the same version as the server.-
Method Details
-
address
InetSocketAddress address()Gets the address of the client.- Returns:
- The address of the client
-
version
MinecraftVersion version()Gets the game version of the client.- Returns:
- The version of the client
-
virtualHost
Optional<InetSocketAddress> virtualHost()Gets the address the player is connecting to.- Returns:
- The address the player is connecting to, or
Optional.empty()
if not available (for example because ofMinecraftVersion.isLegacy()
).
-