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.HasResultMinecraftForge.EVENT_BUS.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
LivingDeathEvent(EntityLivingBase entity,
DamageSource source) |
| Modifier and Type | Method and Description |
|---|---|
DamageSource |
getSource() |
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic LivingDeathEvent(EntityLivingBase entity, DamageSource source)
public DamageSource getSource()