public class PlayerProfile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PlayerProfile.Property
Represents a property.
|
Constructor and Description |
---|
PlayerProfile(java.lang.String uuid,
java.lang.String username,
java.util.Set<PlayerProfile.Property> properties)
Constructor for the class.
|
public PlayerProfile(java.lang.String uuid, java.lang.String username, java.util.Set<PlayerProfile.Property> properties)
Constructor for the class.
You may use new Mojang().connect().getPlayerProfile(uuid)
to retrieve the instance as it will verify the validity of the parameters.
uuid
- the UUID of the player this object should representusername
- the username of said player (you may use new Mojang().connect().getNameHistoryOfPlayer(uuid)
to retrieve it).properties
- the properties for that player. Depends on what you wish to do with the object