Class ServerPing.Players
- java.lang.Object
-
- com.velocitypowered.api.proxy.server.ServerPing.Players
-
- Enclosing class:
- ServerPing
public static final class ServerPing.Players extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Players(int online, int max, java.util.List<ServerPing.SamplePlayer> sample)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getMax()
int
getOnline()
java.util.List<ServerPing.SamplePlayer>
getSample()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Players
public Players(int online, int max, java.util.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 java.util.List<ServerPing.SamplePlayer> getSample()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-