Package studio.magemonkey.fabled.task
Class RemoveEntitiesTask
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
studio.magemonkey.fabled.task.RemoveEntitiesTask
- All Implemented Interfaces:
Runnable
public class RemoveEntitiesTask
extends org.bukkit.scheduler.BukkitRunnable
A simple task for removing some entities after a duration
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveEntitiesTask
(List<? extends org.bukkit.entity.Entity> entities, int ticks) Initializes a new task to remove the entity after the given number of ticks. -
Method Summary
Methods inherited from class org.bukkit.scheduler.BukkitRunnable
cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously
-
Constructor Details
-
RemoveEntitiesTask
Initializes a new task to remove the entity after the given number of ticks.- Parameters:
entities
- entities to removeticks
- ticks to wait before removing the entity
-
-
Method Details
-
run
public void run()Removes the entity once the time is up
-