public class SocketPingResponse extends java.lang.Object implements IPingResponse
SocketPing.| Modifier and Type | Class and Description |
|---|---|
static class |
SocketPingResponse.Server |
| Modifier and Type | Field and Description |
|---|---|
int |
latency |
SocketPingResponse.Server |
server |
| Constructor and Description |
|---|
SocketPingResponse() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress()
Get the address of the server.
|
long |
getPing()
Get the ping to the server in milliseconds.
|
int |
getPort()
Get the port of the server.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFavicon, getMaxPlayers, getMotd, getOnlinePlayers, getProtocolId, getSample, getVersionNamepublic int latency
public SocketPingResponse.Server server
@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 IPingResponsepublic long getPing()
IPingResponseMCPingResponse, ClassicPingResponse, BedrockPingResponse, QueryPingResponse, SocketPingResponse-1getPing in interface IPingResponsepublic java.lang.String toString()
toString in class java.lang.Object