ESDamageEntityEvent

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

Description
The ESDamageEntityEvent is a class that adds two local variables: a damage double and a newDamage double, to keep track of the original damage and the new damage.

Constructor
ESDamageEntityEvent(LivingEntity damaged, EnchantmentLevel enchantment, double damage, double newDamage)
 * // LivingEntity damaged - the damaged entity
 * // EnchantmentLevel enchantment - the enchantment and level of the enchantment that damaged the 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
ESEntityEvent

double getDamage
Returns the original damage

double getNewDamage
Returns the final damage for the event

void setNewDamage(double newDamage)
Sets the final damage of the event to the new damage