Bukkit  1.5.2-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.event.entity.EntityInteractEvent Class Reference

Called when an entity interacts with an object. More...

+ Inheritance diagram for org.bukkit.event.entity.EntityInteractEvent:
+ Collaboration diagram for org.bukkit.event.entity.EntityInteractEvent:

Public Member Functions

 EntityInteractEvent (final Entity entity, final Block block)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Block getBlock ()
 Returns the involved block.
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 Returns the Entity involved in this event.
 
EntityType getEntityType ()
 Gets the EntityType of the Entity involved in this event.
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 The default constructor is defined for cleaner code.
 
 Event (boolean isAsync)
 This constructor is used to explicitly declare an event as synchronous or asynchronous.
 
String getEventName ()
 Convenience method for providing a user-friendly identifier.
 
final boolean isAsynchronous ()
 Any custom event that should not by synchronized with other events must use the specific constructor.
 
- Public Member Functions inherited from org.bukkit.event.Cancellable
boolean isCancelled ()
 Gets the cancellation state of this event.
 
void setCancelled (boolean cancel)
 Sets the cancellation state of this event.
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Protected Attributes

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

Detailed Description

Called when an entity interacts with an object.

Definition at line 11 of file EntityInteractEvent.java.

Constructor & Destructor Documentation

org.bukkit.event.entity.EntityInteractEvent.EntityInteractEvent ( final Entity  entity,
final Block  block 
)

Member Function Documentation

Block org.bukkit.event.entity.EntityInteractEvent.getBlock ( )

Returns the involved block.

Returns
the block clicked with this item.

Definition at line 34 of file EntityInteractEvent.java.

References org.bukkit.event.entity.EntityInteractEvent.block.

static HandlerList org.bukkit.event.entity.EntityInteractEvent.getHandlerList ( )
static

Definition at line 43 of file EntityInteractEvent.java.

HandlerList org.bukkit.event.entity.EntityInteractEvent.getHandlers ( )
virtual

Implements org.bukkit.event.Event.

Definition at line 39 of file EntityInteractEvent.java.

boolean org.bukkit.event.entity.EntityInteractEvent.isCancelled ( )

Definition at line 21 of file EntityInteractEvent.java.

void org.bukkit.event.entity.EntityInteractEvent.setCancelled ( boolean  cancel)

Definition at line 25 of file EntityInteractEvent.java.

Member Data Documentation

Block org.bukkit.event.entity.EntityInteractEvent.block
protected

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