Package dev.redcoke.mcserverping
Class MCServerPingResponse
java.lang.Object
dev.redcoke.mcserverping.MCServerPingResponse
-
Constructor Summary
ConstructorsConstructorDescriptionMCServerPingResponse(int ping, String name, int protocol, int playerMax, int playerOnline, String motd, com.google.gson.JsonArray descriptionExtras, String serverIcon) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectcom.google.gson.JsonArraygetMotd()getName()intgetPing()intintintstatic MCServerPingResponseserverPingFromJsonObj(com.google.gson.JsonObject jsonObj)
-
Constructor Details
-
MCServerPingResponse
-
-
Method Details
-
serverPingFromJsonObj
-
getPing
public int getPing() -
getName
-
getProtocol
public int getProtocol() -
getPlayerMax
public int getPlayerMax() -
getPlayerOnline
public int getPlayerOnline() -
getMotd
-
getDescriptionExtras
public com.google.gson.JsonArray getDescriptionExtras() -
getServerIcon
-
getAsJsonString
-
getAsJsonObject
public com.google.gson.JsonObject getAsJsonObject()
-