Class FullQueryResponse
java.lang.Object
net.minestom.server.extras.query.response.FullQueryResponse
A full query response containing a dynamic set of responses.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new full query response with default values set. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayers
(@NotNull String @NotNull ... players) Adds some players to the response.void
addPlayers
(@NotNull Collection<String> players) Adds some players to the response.static String
Generates the default plugins value.Gets the map containing the key-value mappings.Gets the list of players.void
Puts a key-value mapping into the response.void
Puts a key-value mapping into the response.void
setKeyValuesMap
(@NotNull Map<String, String> map) Sets the map containing the key-value mappings.void
setPlayers
(@NotNull List<String> players) Sets the list of players.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
FullQueryResponse
public FullQueryResponse()Creates a new full query response with default values set.
-
-
Method Details
-
put
Puts a key-value mapping into the response.- Parameters:
key
- the keyvalue
- the value
-
put
Puts a key-value mapping into the response.- Parameters:
key
- the keyvalue
- the value
-
getKeyValuesMap
Gets the map containing the key-value mappings.- Returns:
- the map
-
setKeyValuesMap
Sets the map containing the key-value mappings.- Parameters:
map
- the map
-
addPlayers
Adds some players to the response.- Parameters:
players
- the players
-
addPlayers
Adds some players to the response.- Parameters:
players
- the players
-
getPlayers
Gets the list of players.- Returns:
- the list
-
setPlayers
Sets the list of players.- Parameters:
players
- the players
-
generatePluginsValue
Generates the default plugins value. That being the server name and version followed by the name and version for each extension.- Returns:
- the string result
-