Class LivingHealEvent


  • public class LivingHealEvent
    extends LivingEvent
    LivingHealEvent is fired when an Entity is set to be healed.
    This event is fired whenever an Entity is healed in EntityLivingBase#heal(float)

    This event is fired via the ForgeEventFactory#onLivingHeal(EntityLivingBase, float).

    amount contains the amount of healing done to the Entity that was healed.

    This event is Cancelable.
    If this event is canceled, the Entity is not healed.

    This event does not have a result. Event.HasResult

    This event is fired on the MinecraftForge.EVENT_BUS.
    • Field Detail

      • amount

        private float amount
    • Constructor Detail

      • LivingHealEvent

        public LivingHealEvent​(LivingEntity entity,
                               float amount)
    • Method Detail

      • getAmount

        public float getAmount()
      • setAmount

        public void setAmount​(float amount)