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

Public Member Functions

 EntityDamageByEntityEvent (final Entity damager, final Entity damagee, final DamageCause cause, final int damage)
 
 EntityDamageByEntityEvent (final Entity damager, final Entity damagee, final DamageCause cause, final double damage)
 
Entity getDamager ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityDamageEvent
 EntityDamageEvent (final Entity damagee, final DamageCause cause, final int damage)
 
 EntityDamageEvent (final Entity damagee, final DamageCause cause, final double damage)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
double getDamage ()
 
int _INVALID_getDamage ()
 
void setDamage (double damage)
 
void _INVALID_setDamage (int damage)
 
DamageCause getCause ()
 
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 ()
 

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.

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 26 of file EntityDamageByEntityEvent.java.

26  {
27  return damager;
28  }

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