Klasse SpecialMobs
java.lang.Object
de.delinkedde.mobarenareborn.mob.special.SpecialMobs
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidonSpawn(@NotNull SpecialBehavior behavior, @NotNull LivingEntity mob) Applies one-time spawn effects.static voidtick(@NotNull SpecialBehavior behavior, @NotNull LivingEntity mob, @NotNull List<Player> targets, @NotNull Consumer<Location> summonAdd) Drives the periodic behaviour for one tick.
-
Methodendetails
-
onSpawn
public static void onSpawn(@NotNull @NotNull SpecialBehavior behavior, @NotNull @NotNull LivingEntity mob) Applies one-time spawn effects.- Parameter:
behavior- the behaviourmob- 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 behaviourmob- the mobtargets- the players currently in the roundsummonAdd- a sink that spawns a supporting mob at a location
-