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

Called when an entity is damaged by an entity. More...

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

Public Member Functions

 EntityDamageByEntityEvent (final Entity damager, final Entity damagee, final DamageCause cause, final int damage)
 
Entity getDamager ()
 Returns the entity that damaged the defender.
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityDamageEvent
 EntityDamageEvent (final Entity damagee, final DamageCause cause, final int damage)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
int getDamage ()
 Gets the amount of damage caused by the Block.
 
void setDamage (int damage)
 Sets the amount of damage caused by the Block.
 
DamageCause getCause ()
 Gets the cause of the damage.
 
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 ()
 
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.
 

Additional Inherited Members

- Static Public Member Functions inherited from org.bukkit.event.entity.EntityDamageEvent
static HandlerList getHandlerList ()
 
- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Called when an entity is damaged by an entity.

Definition at line 8 of file EntityDamageByEntityEvent.java.

Constructor & Destructor Documentation

org.bukkit.event.entity.EntityDamageByEntityEvent.EntityDamageByEntityEvent ( final Entity  damager,
final Entity  damagee,
final DamageCause  cause,
final int  damage 
)

Definition at line 11 of file EntityDamageByEntityEvent.java.

Member Function Documentation

Entity org.bukkit.event.entity.EntityDamageByEntityEvent.getDamager ( )

Returns the entity that damaged the defender.

Returns
Entity that damaged the defender.

Definition at line 21 of file EntityDamageByEntityEvent.java.


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