ESEntityDamageEntityEvent

The Enchantment Solution Entity Damage Entity Event is an event called when an entity gets damaged through Enchantment Solution enchantments, or from normal EntityDamagedByEntityEvents that will have their damage changed.

Description
The ESEntityDamageEntityEvent is a class that adds the damager local variable to keep track of the damager in the event, if the damager is a living entity.

Constructor
ESEntityDamageEntityEvent(LivingEntity damaged, EnchantmentLevel enchantment, LivingEntity damager, double damage, double newDamage)
 * // LivingEntity damaged - the damaged entity
 * // EnchantmentLevel enchantment - the enchantment and level of the enchantment that damaged the entity
 * // LivingEntity damager - the attacker entity
 * // double damage - the original damage being done to the mob at the time
 * // double newDamage - the final damage that should be set to the original event

Implements
None

Extends
ESDamageEntityEvent

LivingEntity getDamager
Gets the entity that attacked the damaged entity