public class QueryResult extends Object
| Constructor and Description |
|---|
QueryResult(@NonNull String motd,
@NonNull String gameType,
@NonNull String worldName,
int onlinePlayers,
int maxPlayers,
int port,
@NonNull String address,
@NonNull String gameId,
@NonNull List<String> players,
@NonNull String version) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
@NonNull String |
getAddress()
The hostname for this server.
|
@NonNull String |
getGameId()
The game ID for this server, usually MINECRAFT.
|
@NonNull String |
getGameType()
The game type to return, usually SMP.
|
int |
getMaxPlayers()
The maximum number of players that can be online.
|
@NonNull String |
getMotd()
The message of the day to return.
|
int |
getOnlinePlayers()
The number of players currently online.
|
@NonNull List<String> |
getPlayers()
The players currently online.
|
int |
getPort()
The port for this server.
|
@NonNull String |
getVersion()
The version to return for this server.
|
@NonNull String |
getWorldName()
The world name to return.
|
int |
hashCode() |
void |
setAddress(@NonNull String address)
The hostname for this server.
|
void |
setGameId(@NonNull String gameId)
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 |
setMotd(@NonNull String motd)
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.
|
String |
toString() |
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)
@NonNull public @NonNull String getMotd()
@NonNull public @NonNull String getGameType()
@NonNull public @NonNull String getWorldName()
public int getOnlinePlayers()
public int getMaxPlayers()
public int getPort()
@NonNull public @NonNull String getAddress()
@NonNull public @NonNull String getGameId()
@NonNull public @NonNull String getVersion()
public void setMotd(@NonNull
@NonNull String motd)
public void setGameType(@NonNull
@NonNull String gameType)
public void setWorldName(@NonNull
@NonNull String worldName)
public void setOnlinePlayers(int onlinePlayers)
public void setMaxPlayers(int maxPlayers)
public void setPort(int port)
public void setAddress(@NonNull
@NonNull String address)
public void setGameId(@NonNull
@NonNull String gameId)
public void setVersion(@NonNull
@NonNull String version)
protected boolean canEqual(Object other)
Copyright © 2015–2020 WaterfallMC. All rights reserved.