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

Stores data for damage events. More...

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

Classes

enum  DamageCause
 An enum to specify the cause of the damage. More...
 

Public Member Functions

 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.
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

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

Detailed Description

Stores data for damage events.

Definition at line 10 of file EntityDamageEvent.java.

Constructor & Destructor Documentation

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

Definition at line 16 of file EntityDamageEvent.java.

Member Function Documentation

DamageCause org.bukkit.event.entity.EntityDamageEvent.getCause ( )

Gets the cause of the damage.

Returns
A DamageCause value detailing the cause of the damage.

Definition at line 53 of file EntityDamageEvent.java.

int org.bukkit.event.entity.EntityDamageEvent.getDamage ( )

Gets the amount of damage caused by the Block.

Returns
The amount of damage caused by the Block

Definition at line 35 of file EntityDamageEvent.java.

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

Definition at line 62 of file EntityDamageEvent.java.

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

Implements org.bukkit.event.Event.

Definition at line 58 of file EntityDamageEvent.java.

boolean org.bukkit.event.entity.EntityDamageEvent.isCancelled ( )
void org.bukkit.event.entity.EntityDamageEvent.setCancelled ( boolean  cancel)

Definition at line 26 of file EntityDamageEvent.java.

void org.bukkit.event.entity.EntityDamageEvent.setDamage ( int  damage)

Sets the amount of damage caused by the Block.

Parameters
damageThe amount of damage caused by the Block

Definition at line 44 of file EntityDamageEvent.java.


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