Class WbsRunnable

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
wbs.utils.util.WbsRunnable
All Implemented Interfaces:
Runnable

@Deprecated public abstract class WbsRunnable extends org.bukkit.scheduler.BukkitRunnable
Deprecated.
Use WbsPlugin threading utilities instead.
Extension of BukkitRunnable to create a "finish" method that runs after BukkitRunnable.cancel().
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    protected void
    Deprecated.
    Called after cancel() is invoked.

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    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

    Methods inherited from interface java.lang.Runnable

    run
  • Constructor Details

    • WbsRunnable

      public WbsRunnable()
      Deprecated.
  • Method Details

    • cancel

      public void cancel()
      Deprecated.
      Overrides:
      cancel in class org.bukkit.scheduler.BukkitRunnable
    • finish

      protected void finish()
      Deprecated.
      Called after cancel() is invoked. To be overridden for tasks that need to clean up after themselves