public class EntityDamageEvent extends Event
EntityLiving takes damage using the
EntityLiving.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 | Description |
|---|---|---|
int |
amount |
|
EntityLiving |
entity |
| Constructor | Description |
|---|---|
EntityDamageEvent(EntityLiving entity,
int amount) |
public final EntityLiving entity
public int amount
public EntityDamageEvent(EntityLiving entity, int amount)