Klasse SpecialMobs

java.lang.Object
de.delinkedde.mobarenareborn.mob.special.SpecialMobs

public final class SpecialMobs extends Object
Executes the effects of non-boss special mob behaviours.

onSpawn(SpecialBehavior, LivingEntity) is called once when a special mob is spawned; tick(SpecialBehavior, LivingEntity, List, Consumer) is called once per wave tick (about once per second) by the wave engine. All effects use the public Bukkit API and never damage terrain.

  • Methodendetails

    • onSpawn

      public static void onSpawn(@NotNull @NotNull SpecialBehavior behavior, @NotNull @NotNull LivingEntity mob)
      Applies one-time spawn effects.
      Parameter:
      behavior - the behaviour
      mob - the spawned mob
    • tick

      public static void tick(@NotNull @NotNull SpecialBehavior behavior, @NotNull @NotNull LivingEntity mob, @NotNull @NotNull List<Player> targets, @NotNull @NotNull Consumer<Location> summonAdd)
      Drives the periodic behaviour for one tick.
      Parameter:
      behavior - the behaviour
      mob - the mob
      targets - the players currently in the round
      summonAdd - a sink that spawns a supporting mob at a location