Class ServerPing.Players
- java.lang.Object
-
- com.velocitypowered.api.proxy.server.ServerPing.Players
-
- Enclosing class:
- ServerPing
public static final class ServerPing.Players extends Object
-
-
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 boolean
equals(Object o)
int
getMax()
int
getOnline()
List<ServerPing.SamplePlayer>
getSample()
int
hashCode()
String
toString()
-
-
-
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()
-
-