public interface IPingResponse
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
getAddress()
Get the address of the server.
|
default java.lang.String |
getFavicon()
Get the favicon of the server.
|
default int |
getMaxPlayers()
Get the maximum amount of players that can be online on the server.
|
default java.lang.String |
getMotd()
Get the MOTD of the server.
|
default int |
getOnlinePlayers()
Get the amount of players currently online on the server.
|
default long |
getPing()
Get the ping to the server in milliseconds.
|
default int |
getPort()
Get the port of the server.
|
default int |
getProtocolId()
Get the protocol id of the server.
|
default java.util.List<java.lang.String> |
getSample()
Get a sample of players on the server.
|
default java.lang.String |
getVersionName()
Get the version name of the server.
|
@Nonnull default java.lang.String getAddress()
MCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse"Unknown"default int getPort()
MCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse-1@Nonnull default java.lang.String getMotd()
MCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse"Unknown"@Nullable default java.lang.String getFavicon()
MCPingResponsenulldefault long getPing()
MCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse-1default int getOnlinePlayers()
MCPingResponse, BedrockPingResponse, QueryPingResponse-1default int getMaxPlayers()
MCPingResponse, BedrockPingResponse, QueryPingResponse-1@Nonnull default java.lang.String getVersionName()
MCPingResponse, BedrockPingResponse, QueryPingResponse"Unknown"default int getProtocolId()
MCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse-1@Nonnull default java.util.List<java.lang.String> getSample()
BedrockPingResponse).MCPingResponse, BedrockPingResponse, QueryPingResponse