Klasse BossAbilities

java.lang.Object
de.delinkedde.mobarenareborn.boss.BossAbilities

public final class BossAbilities extends Object
Executes the concrete effect of each BossAbilityType.

The magnitudes (radii, knockback, durations, summon count) are tuned constants; the per-boss tuning that designers control lives in bosses.yml (entity, multipliers, phases, ability set and cast interval). All effects use the public Bukkit API only.

  • Methodendetails

    • cast

      public static void cast(@NotNull @NotNull BossAbilityType type, @NotNull @NotNull LivingEntity boss, @NotNull @NotNull List<Player> targets, @NotNull @NotNull Consumer<Location> summonAdd)
      Casts a single boss ability.
      Parameter:
      type - the ability to cast
      boss - the boss entity
      targets - the players currently in the round
      summonAdd - a sink that spawns a supporting mob at the given location (used by BossAbilityType.SUMMON_ADDS)