Class ServerPing.SamplePlayer
java.lang.Object
com.velocitypowered.api.proxy.server.ServerPing.SamplePlayer
- Enclosing class:
ServerPing
A player returned in the sample field of the server ping players field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServerPing.SamplePlayerA constant representing an anonymous sample player with a null UUID and generic name. -
Constructor Summary
ConstructorsConstructorDescriptionSamplePlayer(String name, UUID id) Constructs a SamplePlayer with the given name and UUID. -
Method Summary
-
Field Details
-
ANONYMOUS
A constant representing an anonymous sample player with a null UUID and generic name.
-
-
Constructor Details
-
SamplePlayer
Constructs a SamplePlayer with the given name and UUID.- Parameters:
name- the name of the playerid- the UUID of the player
-
-
Method Details
-
getName
Gets the legacy string name of the sample player.- Returns:
- the player name
-
getId
Gets the UUID of the sample player.- Returns:
- the player UUID
-
toString
-
equals
-
hashCode
public int hashCode()
-