Module gomint.api

Class EntityHealEvent

    • Constructor Detail

      • EntityHealEvent

        public EntityHealEvent​(Entity entity,
                               double healAmount,
                               EntityHealEvent.Cause cause)
        Create a new entity based cancellable event
        entity - for which this event is
        healAmount - for which the entity should be healed
        cause - of this heal
    • Method Detail

      • getCause

        public EntityHealEvent.Cause getCause()
        Get the cause of this healing
        cause of this healing
      • getHealAmount

        public double getHealAmount()
        Get the amount of health this entity would get due to this event
        amount of heal
      • setHealAmount

        public void setHealAmount​(double healAmount)
        Set the amount of health this entity gets due to this event
        healAmount - which should be added to the entity due to this event