public final class Profile extends Object
Two profile objects are equal if they have the same UUID.
| Constructor and Description |
|---|
Profile(UUID uniqueId,
String name)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Get the user's name.
|
UUID |
getUniqueId()
Get the user's UUID.
|
int |
hashCode() |
Profile |
setName(String name)
Create a copy of this profile but with a new name.
|
Profile |
setUniqueId(UUID uniqueId)
Create a copy of this profile but with a new UUID.
|
String |
toString() |
public UUID getUniqueId()
public Profile setUniqueId(UUID uniqueId)
uniqueId - the new UUIDpublic String getName()
public Profile setName(String name)
name - the new nameCopyright © 2014. All Rights Reserved.