EliteMobDamagedByPlayerEvent

public void EliteMobDamagedByPlayerEvent(EliteEntity eliteEntity, Player player, EntityDamageByEntityEvent event, double damage, boolean criticalStrike, boolean isCustomDamage, double damageModifier)

Event fired when an elite is damaged by a player.

Parameters

eliteEntity

Elite damaged.

player

Player acting as the damged.

event

Original Minecraft damage event.

damage

Damage. Can be modifed!

criticalStrike

Whether the strike is a critical strike.

isCustomDamage

Whether the amount of damage is custom, meaning it should apply with no damage reduction of any kind, including armor!

damageModifier

Damage modifiers that the boss may have to reduce incoming damage.


public void EliteMobDamagedByPlayerEvent(EliteEntity eliteEntity, Player player, double damage, boolean isRangedAttack)

Constructor for testing purposes that allows explicit ranged attack flag. Use this when simulating attacks without an actual EntityDamageByEntityEvent.

Parameters

eliteEntity

Elite damaged.

player

Player acting as the damager.

damage

Base damage amount.

isRangedAttack

Whether this is a ranged attack.


public void EliteMobDamagedByPlayerEvent(EliteEntity eliteEntity, Player player, double damage, boolean isRangedAttack, boolean criticalStrike)

Constructor for testing purposes with explicit ranged attack and critical strike flags. Used by CombatSimulator.simulateCriticalAttack() to test skills that require critical hits.

Parameters

eliteEntity

Elite damaged.

player

Player acting as the damager.

damage

Base damage amount.

isRangedAttack

Whether this is a ranged attack.

criticalStrike

Whether this is a critical strike.