Class LivingFallEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event

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 in LivingEntity.causeFallDamage(float, float, DamageSource).

This event is fired via the
invalid reference
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.
  • Field Details

    • distance

      private float distance
    • damageMultiplier

      private float damageMultiplier
  • Constructor Details

    • LivingFallEvent

      public LivingFallEvent(LivingEntity entity, float distance, float damageMultiplier)
  • Method Details

    • getDistance

      public float getDistance()
    • setDistance

      public void setDistance(float distance)
    • getDamageMultiplier

      public float getDamageMultiplier()
    • setDamageMultiplier

      public void setDamageMultiplier(float damageMultiplier)