entity_damage_by_entity — Events

on entity_damage_by_entityorg.bukkit.event.entity.EntityDamageByEntityEvent
Entity1.0.0

Description

Fires when an entity takes damage from another entity.

Variables

entity
Entity
org.bukkit.entity.Entity
NullableNo

The entity that took damage

damager
Entity
org.bukkit.entity.Entity
NullableNo

The entity that dealt the damage

damagerPlayer
Player
org.bukkit.entity.Player
NullableYes

The player who dealt the damage, or null if the damager is not a player

damage
double
double
NullableNo

The amount of damage dealt

item
ItemStack
org.bukkit.inventory.ItemStack
NullableYes

The weapon the damager used, or null if the damager is not a player or has an empty hand

Examples

on entity_damage_by_entity:

Related (Entity)