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

Public Member Functions

 EntityDeathEvent (final LivingEntity entity, final List< ItemStack > drops)
 
 EntityDeathEvent (final LivingEntity what, final List< ItemStack > drops, final int droppedExp)
 
LivingEntity getEntity ()
 
int getDroppedExp ()
 
void setDroppedExp (int exp)
 
List< ItemStackgetDrops ()
 
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 ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

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

Detailed Description

Thrown whenever a LivingEntity dies

Definition at line 11 of file EntityDeathEvent.java.

Member Function Documentation

int org.bukkit.event.entity.EntityDeathEvent.getDroppedExp ( )

Gets how much EXP should be dropped from this death.

This does not indicate how much EXP should be taken from the entity in question, merely how much should be created after its death.

Returns
Amount of EXP to drop.

Definition at line 39 of file EntityDeathEvent.java.

39  {
40  return dropExp;
41  }
List<ItemStack> org.bukkit.event.entity.EntityDeathEvent.getDrops ( )

Gets all the items which will drop when the entity dies

Returns
Items to drop when the entity dies

Definition at line 60 of file EntityDeathEvent.java.

60  {
61  return drops;
62  }
void org.bukkit.event.entity.EntityDeathEvent.setDroppedExp ( int  exp)

Sets how much EXP should be dropped from this death.

This does not indicate how much EXP should be taken from the entity in question, merely how much should be created after its death.

Parameters
expAmount of EXP to drop.

Definition at line 51 of file EntityDeathEvent.java.

51  {
52  this.dropExp = exp;
53  }

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