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

Public Member Functions

 EntityDamageByBlockEvent (final Block damager, final Entity damagee, final DamageCause cause, final int damage)
 
 EntityDamageByBlockEvent (final Block damager, final Entity damagee, final DamageCause cause, final double damage)
 
Block 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 a block

Definition at line 9 of file EntityDamageByBlockEvent.java.

Member Function Documentation

Block org.bukkit.event.entity.EntityDamageByBlockEvent.getDamager ( )

Returns the block that damaged the player.

Returns
Block that damaged the player

Definition at line 27 of file EntityDamageByBlockEvent.java.

27  {
28  return damager;
29  }

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