public class LivingDropsEvent extends LivingEvent
EntityLivingBase#onDeath(DamageSource).ForgeHooks#onLivingDrops(EntityLivingBase, DamageSource, ArrayList, int, boolean).source contains the DamageSource that caused the drop to occur.drops contains the ArrayList of EntityItems that will be dropped.lootingLevel contains the amount of loot that will be dropped.recentlyHit determines whether the Entity doing the drop has recently been damaged.Cancelable.HasResultMinecraftForge.EVENT_BUS.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeightEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
LivingDropsEvent(LivingEntity entity,
DamageSource source,
java.util.Collection<ItemEntity> drops,
int lootingLevel,
boolean recentlyHit) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.util.Collection<ItemEntity> |
getDrops() |
int |
getLootingLevel() |
DamageSource |
getSource() |
boolean |
isRecentlyHit() |
getEntityLivinggetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic LivingDropsEvent(LivingEntity entity, DamageSource source, java.util.Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit)
public DamageSource getSource()
public java.util.Collection<ItemEntity> getDrops()
public int getLootingLevel()
public boolean isRecentlyHit()