public class LivingDropsEvent extends LivingEvent
ForgeHooks#onLivingDrops(EntityLivingBase, DamageSource, ArrayList, int, boolean, int)
.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.specialDropValue
contains the special drop value for this even.Cancelable
.HasResult
MinecraftForge#EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<EntityItem> |
drops |
int |
lootingLevel |
boolean |
recentlyHit |
DamageSource |
source |
int |
specialDropValue |
entityLiving
entity
Constructor and Description |
---|
LivingDropsEvent(EntityLivingBase entity,
DamageSource source,
java.util.ArrayList<EntityItem> drops,
int lootingLevel,
boolean recentlyHit,
int specialDropValue) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final DamageSource source
public final java.util.ArrayList<EntityItem> drops
public final int lootingLevel
public final boolean recentlyHit
public final int specialDropValue
public LivingDropsEvent(EntityLivingBase entity, DamageSource source, java.util.ArrayList<EntityItem> drops, int lootingLevel, boolean recentlyHit, int specialDropValue)