Modifier and Type | Method and Description |
---|---|
AnimalTamer |
getOwner()
Gets the current owning AnimalTamer
|
boolean |
isTamed()
Check if this is tamed
|
void |
setOwner(AnimalTamer tamer)
Set this to be owned by given AnimalTamer.
|
void |
setTamed(boolean tame)
Sets if this has been tamed.
|
boolean isTamed()
If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
void setTamed(boolean tame)
If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
tame
- true if tameAnimalTamer getOwner()
void setOwner(AnimalTamer tamer)
If the owner is not null, this will be tamed and will have any current path it is following removed. If the owner is set to null, this will be untamed, and the current owner removed.
tamer
- the AnimalTamer who should own thisCopyright © 2016. All rights reserved.