public interface PetMeta extends Persistenceable
Version 1.1
MIT License
Copyright (c) 2017 by Shynixn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Modifier and Type | Method and Description |
|---|---|
long |
getAge()
Returns the age in ticks.
|
EngineContainer |
getEngine()
Returns the data of the engine.
|
Object |
getHeadItemStack()
Returns the itemStack for the head.
|
int |
getItemDamage()
Returns the damage of the item.
|
int |
getItemId()
Returns the id of the item.
|
ParticleEffectMeta |
getParticleEffectMeta()
Returns the particleEffect meta.
|
String |
getPetDisplayName()
Returns the stored display name of the pet which appear above it's head on respawn.
|
PlayerMeta |
getPlayerMeta()
Returns the meta of the owner.
|
String |
getSkin()
Returns the skin of the pet.
|
boolean |
isEnabled()
Returns if the petblock is enabled.
|
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.
|
void |
setAge(long ticks)
Sets the age in ticks.
|
void |
setEnabled(boolean enabled)
Sets the petblock enabled.
|
void |
setEngine(EngineContainer engine)
Sets the data of the engine.
|
void |
setPetDisplayName(String name)
Sets the stored display name of the pet which appears above it's head on respawn.
|
void |
setSkin(int id,
int damage,
String skin,
boolean unbreakable)
Sets the itemStack.
|
void |
setSoundEnabled(boolean enabled)
Sets the pet sound enabled.
|
getIdboolean isEnabled()
void setEnabled(boolean enabled)
enabled - enabledlong getAge()
String getSkin()
void setAge(long ticks)
ticks - ticksEngineContainer getEngine()
void setEngine(EngineContainer engine)
engine - enginevoid setSoundEnabled(boolean enabled)
enabled - enabledboolean isSoundEnabled()
boolean isItemStackUnbreakable()
void setSkin(int id,
int damage,
String skin,
boolean unbreakable)
id - iddamage - damageskin - skinunbreakable - unbreakablevoid setPetDisplayName(String name)
name - nameString getPetDisplayName()
ParticleEffectMeta getParticleEffectMeta()
PlayerMeta getPlayerMeta()
int getItemId()
int getItemDamage()
boolean isItemUnbreakable()
Object getHeadItemStack()
Copyright © 2017. All rights reserved.