public abstract class Player extends Living implements UniqueIdentifiable
faceDisplacement| Constructor and Description |
|---|
Player() |
| Modifier and Type | Method and Description |
|---|---|
abstract Entity |
entity()
Get the entity that represents this player.
|
java.lang.String |
getDisplayName()
Get the player's display name.
|
abstract InventoryPlayer |
getInventory()
Get the player's inventory.
|
abstract java.lang.String |
getUniqueID()
Get the unique ID for this player.
|
abstract java.lang.String |
getUsername()
Get the player's username.
|
getID, getProvider, onProviderChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIDsameTypepublic abstract Entity entity()
public abstract java.lang.String getUniqueID()
No guarantees are made about cross-game ID uniqueness.
getUniqueID in interface UniqueIdentifiablepublic abstract InventoryPlayer getInventory()
public abstract java.lang.String getUsername()
The difference between this and getDisplayName()
is that the name returned by this method is undecorated,
while name returned by getDisplayName()
may be decorated.
public java.lang.String getDisplayName()
The difference between this and getUsername()
is that the name returned by this method may be decorated,
while getUsername() returns the undecorated name.