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
.HasResult
MinecraftForge.EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Event.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() |
getEntityLiving
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public 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()