public class PlayerData extends PersistenceObject implements com.github.shynixn.petblocks.api.persistence.entity.PlayerMeta
| Constructor and Description |
|---|
PlayerData() |
| Modifier and Type | Method and Description |
|---|---|
static PlayerData |
from(org.bukkit.entity.Player player)
Generates the playerData from a player
|
String |
getName()
Returns the name of the playerData
|
org.bukkit.entity.Player |
getPlayer()
Returns the player of the playerData
|
UUID |
getUUID()
Returns the uuid of the playerData
|
void |
setName(String name)
Sets the name of the playerData
|
void |
setUuid(UUID uuid)
Sets the uuid of the playerData
|
getId, setIdpublic String getName()
getName in interface com.github.shynixn.petblocks.api.persistence.entity.PlayerMetapublic void setName(String name)
setName in interface com.github.shynixn.petblocks.api.persistence.entity.PlayerMetaname - namepublic UUID getUUID()
getUUID in interface com.github.shynixn.petblocks.api.persistence.entity.PlayerMetapublic void setUuid(UUID uuid)
setUuid in interface com.github.shynixn.petblocks.api.persistence.entity.PlayerMetauuid - uuidpublic org.bukkit.entity.Player getPlayer()
getPlayer in interface com.github.shynixn.petblocks.api.persistence.entity.PlayerMetapublic static PlayerData from(org.bukkit.entity.Player player)
player - playerCopyright © 2017. All rights reserved.