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

    Constructors
    Constructor
    Description
    RemoveEntitiesTask(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

    Modifier and Type
    Method
    Description
    void
    run()
    Removes the entity once the time is up

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoveEntitiesTask

      public RemoveEntitiesTask(List<? extends org.bukkit.entity.Entity> entities, int ticks)
      Initializes a new task to remove the entity after the given number of ticks.
      Parameters:
      entities - entities to remove
      ticks - ticks to wait before removing the entity
  • Method Details

    • run

      public void run()
      Removes the entity once the time is up