Class MCServerPingResponse

java.lang.Object
dev.redcoke.mcserverping.MCServerPingResponse

public final class MCServerPingResponse extends Object
  • Constructor Details

    • MCServerPingResponse

      public MCServerPingResponse(int ping, String name, int protocol, Integer playerMax, Integer playerOnline, String motd, com.google.gson.JsonArray descriptionExtras, String serverIcon)
  • Method Details

    • serverPingFromJsonObj

      public static MCServerPingResponse serverPingFromJsonObj(com.google.gson.JsonObject jsonObj)
    • getPing

      public int getPing()
    • getName

      public String getName()
    • getProtocol

      public int getProtocol()
    • getPlayerMax

      public Integer getPlayerMax()
    • getPlayerOnline

      public Integer getPlayerOnline()
    • getMotd

      public String getMotd()
    • getDescriptionExtras

      public com.google.gson.JsonArray getDescriptionExtras()
    • getServerIcon

      public String getServerIcon()
    • getAsJsonString

      public String getAsJsonString()
    • getAsJsonObject

      public com.google.gson.JsonObject getAsJsonObject()