类 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.
  • 字段详细资料

    • amount

      private float amount
  • 构造器详细资料

    • LivingHealEvent

      public LivingHealEvent(LivingEntity entity, float amount)
  • 方法详细资料

    • getAmount

      public float getAmount()
    • setAmount

      public void setAmount(float amount)