Class 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 in EntityLivingBase#fall(float, float).

    This event is fired via the 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.
    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 Detail

      • distance

        private float distance
      • damageMultiplier

        private float damageMultiplier
    • Constructor Detail

      • LivingFallEvent

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

      • getDistance

        public float getDistance()
      • setDistance

        public void setDistance​(float distance)
      • getDamageMultiplier

        public float getDamageMultiplier()
      • setDamageMultiplier

        public void setDamageMultiplier​(float damageMultiplier)