Uses of Class
com.velocitypowered.api.proxy.server.QueryResponse.Builder
Packages that use QueryResponse.Builder
Package
Description
Provides utilities to handle server information.
-
Uses of QueryResponse.Builder in com.velocitypowered.api.proxy.server
Methods in com.velocitypowered.api.proxy.server that return QueryResponse.BuilderModifier and TypeMethodDescriptionstatic QueryResponse.Builder
QueryResponse.builder()
Creates a newQueryResponse.Builder
instance.QueryResponse.Builder.clearPlayers()
Removes all players from the builder.QueryResponse.Builder.clearPlugins()
Clears all currently set plugins.QueryResponse.Builder.currentPlayers
(int currentPlayers) Sets the players that are currently claimed to be online.QueryResponse.Builder.gameVersion
(String gameVersion) Sets the game version for the response.Sets the hostname for the response.Sets the map that will appear in the response.QueryResponse.Builder.maxPlayers
(int maxPlayers) Sets the maximum number of players this server purportedly can hold.Adds the specified players to the player list.QueryResponse.Builder.players
(Collection<String> players) Adds the specified players to the player list.QueryResponse.Builder.plugins
(QueryResponse.PluginInformation... plugins) Adds the specified plugins to the plugins list.QueryResponse.Builder.plugins
(Collection<QueryResponse.PluginInformation> plugins) Adds the specified plugins to the plugins list.Sets the host where this proxy is running.QueryResponse.Builder.proxyPort
(int proxyPort) Sets the port where this proxy is running.QueryResponse.Builder.proxyVersion
(String proxyVersion) Sets the proxy version.QueryResponse.toBuilder()
Creates a newQueryResponse.Builder
instance from data represented by this response, so that you may create a newQueryResponse
with new data.