Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityTameEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.EntityTameEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 EntityTameEvent (final LivingEntity entity, final AnimalTamer owner)
 
LivingEntity getEntity ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
AnimalTamer getOwner ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Thrown when a LivingEntity is tamed

Definition at line 11 of file EntityTameEvent.java.

Member Function Documentation

AnimalTamer org.bukkit.event.entity.EntityTameEvent.getOwner ( )

Gets the owning AnimalTamer

Returns
the owning AnimalTamer

Definition at line 39 of file EntityTameEvent.java.

39  {
40  return owner;
41  }
boolean org.bukkit.event.entity.EntityTameEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 26 of file EntityTameEvent.java.

26  {
27  return cancelled;
28  }
void org.bukkit.event.entity.EntityTameEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 30 of file EntityTameEvent.java.

30  {
31  cancelled = cancel;
32  }

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