Interface StatusClient
- 
 public interface StatusClientRepresents a client requesting aStatusResponse. Unlike normal player connections, it may not have the same version as the server.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.InetSocketAddressaddress()Gets the address of the client.MinecraftVersionversion()Gets the game version of the client.java.util.Optional<java.net.InetSocketAddress>virtualHost()Gets the address the player is connecting to.
 
- 
- 
- 
Method Detail- 
addressjava.net.InetSocketAddress address() Gets the address of the client.- Returns:
- The address of the client
 
 - 
versionMinecraftVersion version() Gets the game version of the client.- Returns:
- The version of the client
 
 - 
virtualHostjava.util.Optional<java.net.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()).
 
 
- 
 
-