public static final class ServerPing.Builder extends Object
ServerPing objects.public ServerPing.Builder version(ServerPing.Version version)
public ServerPing.Builder onlinePlayers(int onlinePlayers)
public ServerPing.Builder maximumPlayers(int maximumPlayers)
public ServerPing.Builder samplePlayers(ServerPing.SamplePlayer... players)
public ServerPing.Builder modType(String modType)
public ServerPing.Builder mods(ModInfo.Mod... mods)
public ServerPing.Builder mods(ModInfo mods)
mods list in the response.mods - the mods list to usepublic ServerPing.Builder clearMods()
public ServerPing.Builder clearSamplePlayers()
public ServerPing.Builder notModCompatible()
public ServerPing.Builder nullPlayers()
@Deprecated public ServerPing.Builder description(net.kyori.text.Component description)
public ServerPing.Builder description(net.kyori.adventure.text.Component description)
public ServerPing.Builder favicon(Favicon favicon)
public ServerPing build()
ServerPing instance. The
builder can be re-used after this event has been called.ServerPing instancepublic ServerPing.Version getVersion()
public int getOnlinePlayers()
public int getMaximumPlayers()
public List<ServerPing.SamplePlayer> getSamplePlayers()
@Deprecated public Optional<net.kyori.text.Component> getDescription()
public Optional<net.kyori.adventure.text.Component> getDescriptionComponent()
public String getModType()
public List<ModInfo.Mod> getMods()