public class PetData extends PersistenceObject implements com.github.shynixn.petblocks.api.persistence.entity.PetMeta
| Constructor and Description |
|---|
PetData() |
PetData(org.bukkit.entity.Player player,
String name) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAge()
Returns the age in ticks
|
com.github.shynixn.petblocks.api.persistence.entity.EngineContainer |
getEngine()
Returns the data of the engine
|
int |
getEngineId() |
String |
getHeadDisplayName() |
Object |
getHeadItemStack()
Returns the itemStack for the head
|
String[] |
getHeadLore() |
int |
getItemDamage()
Returns the damage of the item
|
int |
getItemId()
Returns the id of the item
|
com.github.shynixn.petblocks.api.persistence.entity.ParticleEffectMeta |
getParticleEffectMeta()
Returns the particleEffect meta
|
long |
getParticleId()
Returns the id of the particle
|
String |
getPetDisplayName() |
long |
getPlayerId()
Returns the id of the player
|
com.github.shynixn.petblocks.api.persistence.entity.PlayerMeta |
getPlayerMeta()
Returns the meta of the owner
|
String |
getSkin()
Returns the skin of the pet
|
String |
getUuid()
Deprecated.
|
boolean |
isEnabled()
Returns if the petblock is enabled
|
boolean |
isHidden() |
boolean |
isItemStackUnbreakable()
Returns if the itemStack is unbreakable
|
boolean |
isItemUnbreakable()
Returns if the item is unbreakable
|
boolean |
isSoundEnabled()
Returns if the pet-sound is enabled
|
boolean |
isUnbreakable() |
boolean |
isVisible()
Returns if the pet is visible to other players
|
void |
setAge(long ticks)
Sets the age in ticks
|
void |
setEnabled(boolean enabled)
Sets the petblock enabled
|
void |
setEngine(com.github.shynixn.petblocks.api.persistence.entity.EngineContainer engine)
Sets the data of the engine
|
void |
setEngineId(int engineId) |
void |
setHeadDisplayName(String headDisplayName) |
void |
setHeadLore(String[] headLore) |
void |
setHidden(boolean isHidden) |
void |
setParticleEffectMeta(com.github.shynixn.petblocks.api.persistence.entity.ParticleEffectMeta meta)
Sets the particleEffect meta
|
void |
setParticleId(long id)
Sets the id of the particle
|
void |
setPetDisplayName(String name) |
void |
setPlayerId(long id)
Sets the id of the player
|
void |
setPlayerMeta(com.github.shynixn.petblocks.api.persistence.entity.PlayerMeta meta)
Sets the own meta
|
void |
setSkin(int id,
int damage,
String skin,
boolean unbreakable)
Sets the itemStack
|
void |
setSoundEnabled(boolean enabled)
Sets the pet sound enabled
|
void |
setUnbreakable(boolean unbreakable) |
void |
setUuid(String uuid)
Deprecated.
|
void |
setVisible(boolean enabled)
Sets if the pet should be visible to other players
|
getId, setIdpublic PetData(org.bukkit.entity.Player player,
String name)
public PetData()
public void setEngineId(int engineId)
public int getEngineId()
public long getPlayerId()
public void setPlayerId(long id)
id - idpublic long getParticleId()
public void setParticleId(long id)
id - idpublic void setParticleEffectMeta(com.github.shynixn.petblocks.api.persistence.entity.ParticleEffectMeta meta)
meta - metapublic com.github.shynixn.petblocks.api.persistence.entity.ParticleEffectMeta getParticleEffectMeta()
getParticleEffectMeta in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic void setPlayerMeta(com.github.shynixn.petblocks.api.persistence.entity.PlayerMeta meta)
meta - metapublic com.github.shynixn.petblocks.api.persistence.entity.PlayerMeta getPlayerMeta()
getPlayerMeta in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic int getItemId()
getItemId in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic int getItemDamage()
getItemDamage in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic boolean isItemUnbreakable()
isItemUnbreakable in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic Object getHeadItemStack()
getHeadItemStack in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic boolean isHidden()
public void setHidden(boolean isHidden)
public boolean isUnbreakable()
public void setUnbreakable(boolean unbreakable)
public String getHeadDisplayName()
public void setHeadDisplayName(String headDisplayName)
public String[] getHeadLore()
public void setHeadLore(String[] headLore)
public String getPetDisplayName()
getPetDisplayName in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic boolean isEnabled()
isEnabled in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic void setEnabled(boolean enabled)
setEnabled in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetaenabled - enabledpublic long getAge()
getAge in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic String getSkin()
getSkin in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic void setAge(long ticks)
setAge in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetaticks - tickspublic com.github.shynixn.petblocks.api.persistence.entity.EngineContainer getEngine()
getEngine in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic void setEngine(com.github.shynixn.petblocks.api.persistence.entity.EngineContainer engine)
setEngine in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetaengine - enginepublic boolean isVisible()
isVisible in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic void setVisible(boolean enabled)
setVisible in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetaenabled - enabledpublic void setSoundEnabled(boolean enabled)
setSoundEnabled in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetaenabled - enabledpublic boolean isSoundEnabled()
isSoundEnabled in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic boolean isItemStackUnbreakable()
isItemStackUnbreakable in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetapublic void setSkin(int id,
int damage,
String skin,
boolean unbreakable)
setSkin in interface com.github.shynixn.petblocks.api.persistence.entity.PetMetaid - iddamage - damageskin - skinunbreakable - unbreakablepublic void setPetDisplayName(String name)
setPetDisplayName in interface com.github.shynixn.petblocks.api.persistence.entity.PetMeta@Deprecated public String getUuid()
@Deprecated public void setUuid(String uuid)
Copyright © 2017. All rights reserved.