Uses of Class
com.velocitypowered.api.proxy.server.ServerPing.Builder
Packages that use ServerPing.Builder
Package
Description
Provides utilities to handle server information.
-
Uses of ServerPing.Builder in com.velocitypowered.api.proxy.server
Methods in com.velocitypowered.api.proxy.server that return ServerPing.BuilderModifier and TypeMethodDescriptionServerPing.asBuilder()
Returns a copy of thisServerPing
instance as a builder so that it can be modified.static ServerPing.Builder
ServerPing.builder()
ServerPing.Builder.clearFavicon()
Clears the current favicon used in the response.ServerPing.Builder.clearMods()
Clears the current list of mods to use in the response.ServerPing.Builder.clearSamplePlayers()
Clears the current list of PlayerSamples to use in the response.ServerPing.Builder.description
(Component description) Uses thedescription
Component in the response.Uses thefavicon
in the response.ServerPing.Builder.maximumPlayers
(int maximumPlayers) Uses the modifiedmaximumPlayers
number in the response.Uses the modifiedmods
list in the response.ServerPing.Builder.mods
(ModInfo.Mod... mods) Uses the modifiedmods
array in the response.Uses the modifiedmodType
in the response.ServerPing.Builder.notModCompatible()
Defines the server as mod incompatible in the response.ServerPing.Builder.nullPlayers()
Enables nulling Players in the response.ServerPing.Builder.onlinePlayers
(int onlinePlayers) Uses the modifiedonlinePlayers
number in the response.ServerPing.Builder.samplePlayers
(ServerPing.SamplePlayer... players) Uses the modifiedplayers
array in the response.ServerPing.Builder.version
(ServerPing.Version version) Uses the modifiedversion
info in the response.