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
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
public LivingDeathEvent(EntityLivingBase entity, DamageSource source)
public DamageSource getSource()