public interface StatusResponse
ClientPingServerEvent
this is immutable.
This interface exists mostly for convenience and can be implemented in a library pinging other servers for example.
ClientPingServerEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
StatusResponse.Players
Represents the player count, slots and a list of players current playing
on a server.
|
Modifier and Type | Method and Description |
---|---|
Text |
getDescription()
Gets the description (MOTD) of the status response.
|
Optional<Favicon> |
getFavicon()
Gets the
Favicon of the server. |
Optional<? extends StatusResponse.Players> |
getPlayers()
Gets player count and the list of players currently playing on the
server.
|
MinecraftVersion |
getVersion()
Gets the version of the server displayed when the client or the server
are outdated.
|
Text getDescription()
Optional<? extends StatusResponse.Players> getPlayers()
Optional.empty()
if not
availableMinecraftVersion getVersion()
Optional<Favicon> getFavicon()
Favicon
of the server.Optional.empty()
if not available