public class EntityDeathEvent extends EntityEvent
Event.Resultentity| 构造器和说明 |
|---|
EntityDeathEvent(LivingEntity entity,
java.util.List<ItemStack> drops) |
EntityDeathEvent(LivingEntity what,
java.util.List<ItemStack> drops,
int droppedExp) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDroppedExp()
返回这个死亡的实体掉落的经验数量.
|
java.util.List<ItemStack> |
getDrops()
返回这实体死亡掉落物品的集合
Gets all the items which will drop when the entity dies
|
LivingEntity |
getEntity()
返回这个事件所涉及的实体.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
void |
setDroppedExp(int exp)
设置这个实体死亡所掉落的经验值数量.
|
getEntityTypegetEventName, isAsynchronouspublic EntityDeathEvent(LivingEntity entity, java.util.List<ItemStack> drops)
public EntityDeathEvent(LivingEntity what, java.util.List<ItemStack> drops, int droppedExp)
public LivingEntity getEntity()
EntityEvent原文: Returns the Entity involved in this event
getEntity 在类中 EntityEventpublic int 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.
public void 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.
exp - 掉落的经验值的数量public java.util.List<ItemStack> getDrops()
Gets all the items which will drop when the entity dies
public HandlerList getHandlers()
getHandlers 在类中 Eventpublic static HandlerList getHandlerList()