EntityDeathEvent

public class EntityDeathEvent extends EntityEvent

Thrown whenever getClassById LivingEntity dies

Inheritors

Constructors

Link copied to clipboard
public void EntityDeathEvent(LivingEntity entity, List<ItemStack> drops)
public void EntityDeathEvent(LivingEntity what, List<ItemStack> drops, int droppedExp)

Properties

Link copied to clipboard
public final List<ItemStack> drops
Link copied to clipboard
public final static HandlerList handlers

Functions

Link copied to clipboard
public int getDroppedExp()
Gets how much EXP should be dropped from this death.
Link copied to clipboard
Gets all the items which will drop when the entity dies
Link copied to clipboard
Returns the Entity involved in this event
Link copied to clipboard
Gets the EntityType of the Entity involved in this event.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
public void setDroppedExp(int exp)
Sets how much EXP should be dropped from this death.