public class LivingFallEvent extends LivingEvent
EntityLivingBase.fall(float, float).ForgeHooks.onLivingFall(EntityLivingBase, float, float).distance contains the distance the Entity is to fall. If this event is canceled, this value is set to 0.0F.
Cancelable.HasResultMinecraftForge.EVENT_BUS.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
LivingFallEvent(EntityLivingBase entity,
float distance,
float damageMultiplier) |
| Modifier and Type | Method and Description |
|---|---|
float |
getDamageMultiplier() |
float |
getDistance() |
void |
setDamageMultiplier(float damageMultiplier) |
void |
setDistance(float distance) |
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic LivingFallEvent(EntityLivingBase entity, float distance, float damageMultiplier)