Class ServerPing.Builder
java.lang.Object
com.velocitypowered.api.proxy.server.ServerPing.Builder
- Enclosing class:
- ServerPing
A builder for
ServerPing objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Uses the information from this builder to create a newServerPinginstance.description(Component description) intgetMods()intmaximumPlayers(int maximumPlayers) Uses the modifiedmodslist in the response.mods(ModInfo.Mod... mods) onlinePlayers(int onlinePlayers) samplePlayers(ServerPing.SamplePlayer... players) toString()version(ServerPing.Version version)
-
Method Details
-
version
-
onlinePlayers
-
maximumPlayers
-
samplePlayers
-
modType
-
mods
-
mods
Uses the modifiedmodslist in the response.- Parameters:
mods- the mods list to use- Returns:
- this build, for chaining
-
clearMods
-
clearSamplePlayers
-
notModCompatible
-
nullPlayers
-
description
-
favicon
-
clearFavicon
-
build
Uses the information from this builder to create a newServerPinginstance. The builder can be re-used after this event has been called.- Returns:
- a new
ServerPinginstance
-
getVersion
-
getOnlinePlayers
public int getOnlinePlayers() -
getMaximumPlayers
public int getMaximumPlayers() -
getSamplePlayers
-
getDescriptionComponent
-
getFavicon
-
getModType
-
getMods
-
toString
-