Class RemoveTask

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
com.sucy.skill.task.RemoveTask
All Implemented Interfaces:
Runnable

public class RemoveTask extends org.bukkit.scheduler.BukkitRunnable
A simple task for removing an entity after a duration
  • Constructor Summary

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

    • RemoveTask

      public RemoveTask(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