public final class EntityDamageEvent extends Event
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.| Modifier and Type | Field and Description |
|---|---|
int |
amount |
LivingEntity |
entity |
| Constructor and Description |
|---|
EntityDamageEvent(LivingEntity entity,
int amount) |
public final LivingEntity entity
public int amount
public EntityDamageEvent(LivingEntity entity, int amount)