![]() |
Bukkit
1.4.7-R1.0
|
Inheritance diagram for org.bukkit.entity.Tameable:Public Member Functions | |
| boolean | isTamed () |
| Check if this is tamed. | |
| void | setTamed (boolean tame) |
| Sets if this has been tamed. | |
| AnimalTamer | getOwner () |
| Gets the current owning AnimalTamer. | |
| void | setOwner (AnimalTamer tamer) |
| Set this to be owned by given AnimalTamer. | |
Definition at line 3 of file Tameable.java.
| AnimalTamer org.bukkit.entity.Tameable.getOwner | ( | ) |
Gets the current owning AnimalTamer.
| boolean org.bukkit.entity.Tameable.isTamed | ( | ) |
Check if this is tamed.
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 org.bukkit.entity.Tameable.setOwner | ( | AnimalTamer | tamer | ) |
Set this to be owned by given AnimalTamer.
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 this |
| void org.bukkit.entity.Tameable.setTamed | ( | boolean | tame | ) |
Sets if this has been tamed.
Not necessary if the method setOwner has been used, as it tames automatically.
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 tame |