Package studio.magemonkey.fabled.task
Class RepeatingEntityTask<T extends org.bukkit.entity.Entity>
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
studio.magemonkey.fabled.task.RepeatingEntityTask<T>
- All Implemented Interfaces:
Runnable
public class RepeatingEntityTask<T extends org.bukkit.entity.Entity>
extends org.bukkit.scheduler.BukkitRunnable
A simple task for performing an action on a list of entities every tick
-
Constructor Summary
ConstructorsConstructorDescriptionRepeatingEntityTask
(List<T> entities, EntityTask<T> entityTask) Initializes a new task to perform a given action on an entity every tick -
Method Summary
Methods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously
-
Constructor Details
-
RepeatingEntityTask
Initializes a new task to perform a given action on an entity every tick- Parameters:
entities
- entities to affectentityTask
- the task to apply on all remaining projectiles
-
-
Method Details
-
run
public void run()Applies the entity task
-