Class LivingHealEvent

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

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 LivingEntity.heal(float)

This event is fired via the ForgeEventFactory.onLivingHeal(LivingEntity, 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 Details

    • amount

      private float amount
  • Constructor Details

    • LivingHealEvent

      public LivingHealEvent(LivingEntity entity, float amount)
  • Method Details

    • getAmount

      public float getAmount()
    • setAmount

      public void setAmount(float amount)