Class EntityDamageEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.EntityDamageEvent

public final class EntityDamageEvent extends Event
This event is fired when an LivingEntity takes damage using the LivingEntity.takeDamage(int) method. Changing the amount will result in the damage changing. Cancelling the event will result in the entity taking no damage.
  • Field Details

    • entity

      public final LivingEntity entity
    • amount

      public int amount
  • Constructor Details

    • EntityDamageEvent

      public EntityDamageEvent(LivingEntity entity, int amount)