public static interface QueryServerEvent.Basic extends QueryServerEvent
QueryServerEvent.Basic, QueryServerEvent.Full
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress()
Gets the address to respond with.
|
String |
getGameType()
Gets the GameType to respond with.
|
String |
getMap()
Gets the map (world) to respond with.
|
int |
getMaxPlayerCount()
Gets the max player count to respond with.
|
int |
getMaxSize()
Gets the maximum size of the data to respond with.
|
String |
getMotd()
Gets the MOTD to respond with.
|
int |
getPlayerCount()
Gets the player count to respond with.
|
int |
getSize()
Gets the current size of the data to respond with.
|
void |
setAddress(InetSocketAddress address)
Sets the address to respond with.
|
void |
setGameType(String gameType)
Sets the GameType to respond with.
|
void |
setMap(String map)
Sets the map (world) to respond with.
|
void |
setMaxPlayerCount(int maxPlayerCount)
Sets the max player count to respond with.
|
void |
setMotd(String motd)
Sets the MOTD to respond with.
|
void |
setPlayerCount(int playerCount)
Sets the player count to respond with.
|
getCause, getContext, getSource
String getMotd()
By default, this is the server's current MOTD
void setMotd(String motd)
If setting the string causes the message to go over the maximum size, the message will be automatically truncated.
motd
- The MOTD to respond withString getGameType()
By default, this is SMP
.
If setting the string causes the message to go over the
maximum size, the message will be automatically truncated.
void setGameType(String gameType)
If setting the string causes the message to go over the maximum size, the message will be automatically truncated.
gameType
- The GameType to respond withString getMap()
By default, this is the current world on the server.
void setMap(String map)
If setting the string causes the message to go over the maximum size, the message will be automatically truncated.
map
- The map to respond withint getPlayerCount()
By default, this is the number of players present on the server. If setting the string causes the message to go over the maximum size, the message will be automatically truncated.
void setPlayerCount(int playerCount)
If setting the int causes the message to go over the maximum size, the message will be automatically truncated.
playerCount
- The player count to respond withint getMaxPlayerCount()
By default, this is the maximum number of players allowed on the server.
void setMaxPlayerCount(int maxPlayerCount)
If setting the int causes the message to go over the maximum size, the message will be automatically truncated.
maxPlayerCount
- The max player count to respond withInetSocketAddress getAddress()
By default, this is the address the server is listening on.
void setAddress(InetSocketAddress address)
address
- The address to respond withint getSize()
This value is implementation-defined - it is only meaningful when
compared with getMaxSize()
.
int getMaxSize()
If the size of the data is greater than the returned value,
it will be automatically truncated.
This value is implementation-defined - it is only meaningful when
compared with getSize()
()}.