Package io.github.waterfallmc.waterfall
Class QueryResult
java.lang.Object
io.github.waterfallmc.waterfall.QueryResult
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents a PluginInfo, containing a name and version of a plugin -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull String
The hostname for this server.@NonNull String
The game ID for this server, usually MINECRAFT.@NonNull String
The game type to return, usually SMP.int
The maximum number of players that can be online.@NonNull String
getMotd()
The message of the day to return.int
The number of players currently online.The players currently online.The plugins to return for this serverint
getPort()
The port for this server.@NonNull String
The version to return for this server.@NonNull String
The world name to return.int
hashCode()
void
setAddress
(@NonNull String address) The hostname for this server.void
The game ID for this server, usually MINECRAFT.void
setGameType
(@NonNull String gameType) The game type to return, usually SMP.void
setMaxPlayers
(int maxPlayers) The maximum number of players that can be online.void
The message of the day to return.void
setOnlinePlayers
(int onlinePlayers) The number of players currently online.void
setPort
(int port) The port for this server.void
setVersion
(@NonNull String version) The version to return for this server.void
setWorldName
(@NonNull String worldName) The world name to return.toString()
-
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
The message of the day to return. -
getGameType
The game type to return, usually SMP. -
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
The hostname for this server. -
getGameId
The game ID for this server, usually MINECRAFT. -
getPlayers
The players currently online. -
getVersion
The version to return for this server. -
getPlugins
The plugins to return for this server -
setMotd
The message of the day to return. -
setGameType
The game type to return, usually SMP. -
setWorldName
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
The hostname for this server. -
setGameId
The game ID for this server, usually MINECRAFT. -
setVersion
The version to return for this server. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-