PlayerDeathEvent
public class EntityDeathEvent extends EntityEvent
Event.Result
entity
Constructor | Description |
---|---|
EntityDeathEvent(LivingEntity entity,
java.util.List<ItemStack> drops) |
|
EntityDeathEvent(LivingEntity what,
java.util.List<ItemStack> drops,
int droppedExp) |
Modifier and Type | Method | Description |
---|---|---|
int |
getDroppedExp() |
Gets how much EXP should be dropped from this death.
|
java.util.List<ItemStack> |
getDrops() |
Gets all the items which will drop when the entity dies
|
LivingEntity |
getEntity() |
Returns the Entity involved in this event
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
void |
setDroppedExp(int exp) |
Sets how much EXP should be dropped from this death.
|
getEntityType
getEventName, isAsynchronous
public EntityDeathEvent(LivingEntity entity, java.util.List<ItemStack> drops)
public EntityDeathEvent(LivingEntity what, java.util.List<ItemStack> drops, int droppedExp)
public LivingEntity getEntity()
EntityEvent
getEntity
in class EntityEvent
public int getDroppedExp()
This does not indicate how much EXP should be taken from the entity in question, merely how much should be created after its death.
public void setDroppedExp(int exp)
This does not indicate how much EXP should be taken from the entity in question, merely how much should be created after its death.
exp
- Amount of EXP to drop.public java.util.List<ItemStack> getDrops()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.