public class LivingDeathEvent extends LivingEvent
EntityLivingBase.onDeath(DamageSource)
,
EntityPlayer.onDeath(DamageSource)
, and
EntityPlayerMP.onDeath(DamageSource)
. ForgeHooks.onLivingDeath(EntityLivingBase, DamageSource)
.source
contains the DamageSource that caused the entity to die. 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 |
---|---|
private DamageSource |
source |
Constructor and Description |
---|
LivingDeathEvent(EntityLivingBase entity,
DamageSource source) |
Modifier and Type | Method and Description |
---|---|
DamageSource |
getSource() |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final DamageSource source
public LivingDeathEvent(EntityLivingBase entity, DamageSource source)
public DamageSource getSource()