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
-
public class LivingFallEvent extends LivingEvent
LivingFallEvent is fired when an Entity is set to be falling.
This event is fired whenever an Entity is set to fall inEntityLivingBase#fall(float, float).
This event is fired via theForgeHooks#onLivingFall(EntityLivingBase, float, float).
distancecontains the distance the Entity is to fall. If this event is canceled, this value is set to 0.0F.
This event isCancelable.
If this event is canceled, the Entity does not fall.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
Fields Modifier and Type Field Description private floatdamageMultiplierprivate floatdistance
-
Constructor Summary
Constructors Constructor Description LivingFallEvent(LivingEntity entity, float distance, float damageMultiplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetDamageMultiplier()floatgetDistance()voidsetDamageMultiplier(float damageMultiplier)voidsetDistance(float distance)-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
LivingFallEvent
public LivingFallEvent(LivingEntity entity, float distance, float damageMultiplier)
-
-