Class QueryResult

java.lang.Object
io.github.waterfallmc.waterfall.QueryResult

public class QueryResult extends Object
  • Constructor Details

    • QueryResult

      public QueryResult(@NonNull @NonNull String motd, @NonNull @NonNull String gameType, @NonNull @NonNull String worldName, int onlinePlayers, int maxPlayers, int port, @NonNull @NonNull String address, @NonNull @NonNull String gameId, @NonNull @NonNull List<String> players, @NonNull @NonNull String version)
  • Method Details

    • getMotd

      @NonNull public @NonNull String getMotd()
      The message of the day to return.
    • getGameType

      @NonNull public @NonNull String getGameType()
      The game type to return, usually SMP.
    • getWorldName

      @NonNull public @NonNull String getWorldName()
      The world name to return.
    • getOnlinePlayers

      public int getOnlinePlayers()
      The number of players currently online.
    • getMaxPlayers

      public int getMaxPlayers()
      The maximum number of players that can be online.
    • getPort

      public int getPort()
      The port for this server.
    • getAddress

      @NonNull public @NonNull String getAddress()
      The hostname for this server.
    • getGameId

      @NonNull public @NonNull String getGameId()
      The game ID for this server, usually MINECRAFT.
    • getPlayers

      @NonNull public @NonNull List<String> getPlayers()
      The players currently online.
    • getVersion

      @NonNull public @NonNull String getVersion()
      The version to return for this server.
    • getPlugins

      public List<QueryResult.PluginInfo> getPlugins()
      The plugins to return for this server
    • setMotd

      public void setMotd(@NonNull @NonNull String motd)
      The message of the day to return.
    • setGameType

      public void setGameType(@NonNull @NonNull String gameType)
      The game type to return, usually SMP.
    • setWorldName

      public void setWorldName(@NonNull @NonNull String worldName)
      The world name to return.
    • setOnlinePlayers

      public void setOnlinePlayers(int onlinePlayers)
      The number of players currently online.
    • setMaxPlayers

      public void setMaxPlayers(int maxPlayers)
      The maximum number of players that can be online.
    • setPort

      public void setPort(int port)
      The port for this server.
    • setAddress

      public void setAddress(@NonNull @NonNull String address)
      The hostname for this server.
    • setGameId

      public void setGameId(@NonNull @NonNull String gameId)
      The game ID for this server, usually MINECRAFT.
    • setVersion

      public void setVersion(@NonNull @NonNull String version)
      The version to return for this server.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object