Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Tameable Interface Reference
Inheritance diagram for org.bukkit.entity.Tameable:
org.bukkit.entity.Horse org.bukkit.entity.Ocelot org.bukkit.entity.Wolf

Public Member Functions

boolean isTamed ()
 
void setTamed (boolean tame)
 
AnimalTamer getOwner ()
 
void setOwner (AnimalTamer tamer)
 

Detailed Description

Definition at line 3 of file Tameable.java.

Member Function Documentation

AnimalTamer org.bukkit.entity.Tameable.getOwner ( )

Gets the current owning AnimalTamer

Returns
the owning AnimalTamer, or null if not owned
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.

Returns
true if this has been tamed
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.

Parameters
tamerthe 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.

Parameters
tametrue if tame

The documentation for this interface was generated from the following file: