Interface ClientPingServerEvent.Response.Players
- All Superinterfaces:
StatusResponse.Players
- Enclosing interface:
- ClientPingServerEvent.Response
Represents the information about the players on the server, sent
after the
ClientPingServerEvent
.-
Method Summary
Modifier and TypeMethodDescriptionprofiles()
Gets an mutable list of online players on the server to display on the client.void
setMax
(int max) Sets the maximum amount of allowed players to display on the client.void
setOnline
(int online) Sets the amount of online players to display on the client.Methods inherited from interface org.spongepowered.api.network.status.StatusResponse.Players
max, online
-
Method Details
-
setOnline
void setOnline(int online) Sets the amount of online players to display on the client.- Parameters:
online
- The amount of online players
-
setMax
void setMax(int max) Sets the maximum amount of allowed players to display on the client.- Parameters:
max
- The maximum amount of players
-
profiles
List<GameProfile> profiles()Gets an mutable list of online players on the server to display on the client.- Specified by:
profiles
in interfaceStatusResponse.Players
- Returns:
- A mutable list of online players
-