Interface StatusResponse
- All Known Subinterfaces:
- ClientPingServerEvent.Response
public interface StatusResponse
Represents the response to a status request. Unlike 
ClientPingServerEvent
 this is immutable.
 This interface exists mostly for convenience and can be implemented in a library pinging other servers for example.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the player count, slots and a list of players current playing on a server.
- 
Method SummaryModifier and TypeMethodDescriptionGets the description (MOTD) of the status response.favicon()Gets theFaviconof the server.Optional<? extends StatusResponse.Players>players()Gets player count and the list of players currently playing on the server.version()Gets the version of the server displayed when the client or the server are outdated.
- 
Method Details- 
descriptionComponent description()Gets the description (MOTD) of the status response.- Returns:
- The description to display
 
- 
playersOptional<? extends StatusResponse.Players> players()Gets player count and the list of players currently playing on the server.- Returns:
- The player information, or Optional.empty()if not available
 
- 
versionMinecraftVersion version()Gets the version of the server displayed when the client or the server are outdated.- Returns:
- The server version
 
- 
faviconGets theFaviconof the server.- Returns:
- The favicon, or Optional.empty()if not available
 
 
-