Class undyingcommander
java.lang.Object
valorless.rarespawns.ability.builtin.undyingcommander
- All Implemented Interfaces:
org.bukkit.event.Listener,Ability
Ability: Undying Commander
Spawns a number of minions around the rare entity and sets their target.
If a minion is damaged, the damage is transferred to the rare entity.
If the rare entity dies, all minions are also killed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(EntityData data, org.bukkit.entity.Mob rare) Executes the ability logic for the given rare entity and its data.voidonDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event) voidonEntityDeath(org.bukkit.event.entity.EntityDeathEvent event)
-
Constructor Details
-
undyingcommander
public undyingcommander()
-
-
Method Details
-
execute
Description copied from interface:AbilityExecutes the ability logic for the given rare entity and its data. -
onDamage
public void onDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event) -
onEntityDeath
public void onEntityDeath(org.bukkit.event.entity.EntityDeathEvent event)
-