public class QueryPingResponse extends java.lang.Object implements IPingResponse
QueryPing.| Modifier and Type | Class and Description |
|---|---|
static class |
QueryPingResponse.Players |
static class |
QueryPingResponse.Plugins |
static class |
QueryPingResponse.Server |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
description |
DescriptionType |
descriptionType |
java.lang.String |
gameId |
java.lang.String |
gameType |
java.lang.String |
map |
QueryPingResponse.Players |
players |
QueryPingResponse.Plugins |
plugins |
QueryPingResponse.Server |
server |
java.lang.String |
version |
| Constructor and Description |
|---|
QueryPingResponse() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress()
Get the address of the server.
|
int |
getMaxPlayers()
Get the maximum amount of players that can be online on the server.
|
java.lang.String |
getMotd()
Get the MOTD of the server.
|
int |
getOnlinePlayers()
Get the amount of players currently online on the server.
|
long |
getPing()
Get the ping to the server in milliseconds.
|
int |
getPort()
Get the port of the server.
|
int |
getProtocolId()
Get the protocol id of the server.
|
java.util.List<java.lang.String> |
getSample()
Get a sample of players on the server.
|
java.lang.String |
getVersionName()
Get the version name of the server.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFaviconpublic java.lang.String description
public DescriptionType descriptionType
public java.lang.String gameType
public java.lang.String map
public java.lang.String gameId
public java.lang.String version
public QueryPingResponse.Server server
public QueryPingResponse.Players players
public QueryPingResponse.Plugins plugins
@Nonnull public java.lang.String getAddress()
IPingResponseMCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse"Unknown"getAddress in interface IPingResponsepublic int getPort()
IPingResponseMCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse-1getPort in interface IPingResponse@Nonnull public java.lang.String getMotd()
IPingResponseMCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse"Unknown"getMotd in interface IPingResponsepublic long getPing()
IPingResponseMCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse-1getPing in interface IPingResponsepublic int getOnlinePlayers()
IPingResponseMCPingResponse, BedrockPingResponse, QueryPingResponse-1getOnlinePlayers in interface IPingResponsepublic int getMaxPlayers()
IPingResponseMCPingResponse, BedrockPingResponse, QueryPingResponse-1getMaxPlayers in interface IPingResponse@Nonnull public java.lang.String getVersionName()
IPingResponseMCPingResponse, BedrockPingResponse, QueryPingResponse"Unknown"getVersionName in interface IPingResponsepublic int getProtocolId()
IPingResponseMCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse-1getProtocolId in interface IPingResponse@Nonnull public java.util.List<java.lang.String> getSample()
IPingResponseBedrockPingResponse).MCPingResponse, BedrockPingResponse, QueryPingResponsegetSample in interface IPingResponsepublic java.lang.String toString()
toString in class java.lang.Object