Class undyingcommander

java.lang.Object
valorless.rarespawns.ability.builtin.undyingcommander
All Implemented Interfaces:
org.bukkit.event.Listener, Ability

public class undyingcommander extends Object implements Ability, org.bukkit.event.Listener
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 Details

    • undyingcommander

      public undyingcommander()
  • Method Details

    • execute

      public void execute(EntityData data, org.bukkit.entity.Mob rare)
      Description copied from interface: Ability
      Executes the ability logic for the given rare entity and its data.
      Specified by:
      execute in interface Ability
      Parameters:
      data - The EntityData containing properties and context for the rare entity.
      rare - The Mob instance representing the rare entity.
    • onDamage

      public void onDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
    • onEntityDeath

      public void onEntityDeath(org.bukkit.event.entity.EntityDeathEvent event)