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 newServerPing
instance.description
(Component description) int
getMods()
int
maximumPlayers
(int maximumPlayers) Uses the modifiedmods
list 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 modifiedmods
list 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 newServerPing
instance. The builder can be re-used after this event has been called.- Returns:
- a new
ServerPing
instance
-
getVersion
-
getOnlinePlayers
public int getOnlinePlayers() -
getMaximumPlayers
public int getMaximumPlayers() -
getSamplePlayers
-
getDescriptionComponent
-
getFavicon
-
getModType
-
getMods
-
toString
-