DrownedEvent

The Drowned Event is an event called when an entity is attacked with a weapon enchanted with Drowned.

Description
The DrownedEvent is a class that adds two new fields, the applyEffect boolean, which decides whether the entity should receive drowning damage or not, and the ticks int, which states how many ticks the effect should last.

Constructor
DrownedEvent(LivingEntity damaged, int level, LivingEntity damager, double damage, double newDamage, boolean applyEffect, int ticks)
 * // LivingEntity damaged - the damaged entity
 * // int level - the level of Drowned afflicting the damaged entity
 * // LivingEntity damager - the entity attacking with Drowned
 * // double damage - the original damage of the event
 * // double newDamage - the used damage for the event
 * // boolean applyEffect - determines whether the drowning effect should be applied to the damaged entity
 * // int ticks - determines the number of ticks the entity should be afflicted to the damaged entity

Implements
None

Extends
ESEntityDamageEntityEvent

boolean willApplyEffect
Gets whether the damaged entity will receive drowning damage or not

void setApplyEffect(boolean applyEffect)
Sets whether the damaged entity will receive drowning damage or not

int getTicks
Gets the number of ticks that the damaged entity will be drowning

void setTicks(int ticks)
Sets the number of ticks that the damaged entity will be drowning to the specified value