Class LivingFallEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingFallEvent
LivingFallEvent is fired when an Entity is set to be falling.
This event is fired whenever an Entity is set to fall in
This event is fired via the
This event is
If this event is canceled, the Entity does not fall.
This event does not have a result.
This event is fired on the
This event is fired whenever an Entity is set to fall in
LivingEntity.causeFallDamage(float, float, DamageSource)
.This event is fired via the
ForgeHooks.onLivingFall(LivingEntity, float, float)
.distance
contains the distance the Entity is to fall. If this event is canceled, this value is set to 0.0F.
This event is
Cancelable
.If this event is canceled, the Entity does not fall.
This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLivingFallEvent
(LivingEntity entity, float distance, float damageMultiplier) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
void
setDamageMultiplier
(float damageMultiplier) void
setDistance
(float distance) Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
distance
private float distance -
damageMultiplier
private float damageMultiplier
-
-
Constructor Details
-
LivingFallEvent
-
-
Method Details
-
getDistance
public float getDistance() -
setDistance
public void setDistance(float distance) -
getDamageMultiplier
public float getDamageMultiplier() -
setDamageMultiplier
public void setDamageMultiplier(float damageMultiplier)
-