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
.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 float |
damageMultiplier |
private float |
distance |
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) |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public LivingFallEvent(EntityLivingBase entity, float distance, float damageMultiplier)