Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Tameable.java
1 package org.bukkit.entity;
2 
3 public interface Tameable {
4 
5  /**
6  * Check if this is tamed
7  * <p>
8  * If something is tamed then a player can not tame it through normal
9  * methods, even if it does not belong to anyone in particular.
10  *
11  * @return true if this has been tamed
12  */
13  public boolean isTamed();
14 
15  /**
16  * Sets if this has been tamed. Not necessary if the method setOwner has
17  * been used, as it tames automatically.
18  * <p>
19  * If something is tamed then a player can not tame it through normal
20  * methods, even if it does not belong to anyone in particular.
21  *
22  * @param tame true if tame
23  */
24  public void setTamed(boolean tame);
25 
26  /**
27  * Gets the current owning AnimalTamer
28  *
29  * @return the owning AnimalTamer, or null if not owned
30  */
31  public AnimalTamer getOwner();
32 
33  /**
34  * Set this to be owned by given AnimalTamer.
35  * <p>
36  * If the owner is not null, this will be tamed and will have any current
37  * path it is following removed. If the owner is set to null, this will be
38  * untamed, and the current owner removed.
39  *
40  * @param tamer the AnimalTamer who should own this
41  */
42  public void setOwner(AnimalTamer tamer);
43 
44 }
void setTamed(boolean tame)
void setOwner(AnimalTamer tamer)