Class ServerPing.Players
- java.lang.Object
-
- com.velocitypowered.api.proxy.server.ServerPing.Players
-
- Enclosing class:
- ServerPing
public static final class ServerPing.Players extends Object
Represents what the players the server purports to have online, its maximum capacity, and a sample of players on the server.
-
-
Constructor Summary
Constructors Constructor Description Players(int online, int max, List<ServerPing.SamplePlayer> sample)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetMax()intgetOnline()List<ServerPing.SamplePlayer>getSample()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Players
public Players(int online, int max, List<ServerPing.SamplePlayer> sample)Creates a new instance.- Parameters:
online- the number of online playersmax- the maximum number of playerssample- a sample of players on the server
-
-
Method Detail
-
getOnline
public int getOnline()
-
getMax
public int getMax()
-
getSample
public List<ServerPing.SamplePlayer> getSample()
-
-