Class SchedulerUtils

java.lang.Object
cn.ycraft.limbo.util.SchedulerUtils

public class SchedulerUtils extends Object
  • Constructor Details

    • SchedulerUtils

      public SchedulerUtils(LimboPlugin plugin)
  • Method Details

    • serverScheduler

      public LimboScheduler serverScheduler()
    • run

      public void run(Runnable runnable)
    • runAsync

      public void runAsync(Runnable runnable)
    • runLater

      public void runLater(long delayTicks, Runnable runnable)
    • runLater

      public void runLater(TimeUnit unit, long delayTicks, Runnable runnable)
    • runLaterAsync

      public void runLaterAsync(long delayTicks, Runnable runnable)
    • runLaterAsync

      public void runLaterAsync(TimeUnit unit, long delay, Runnable runnable)
    • runAtInterval

      public void runAtInterval(long intervalTicks, Runnable... tasks)
    • runAtInterval

      public void runAtInterval(TimeUnit unit, long interval, Runnable... tasks)
    • runAtIntervalAsync

      public void runAtIntervalAsync(long intervalTicks, Runnable... tasks)
    • runAtIntervalAsync

      public void runAtIntervalAsync(TimeUnit unit, long interval, Runnable... tasks)
    • runAtInterval

      public void runAtInterval(long delayTicks, long intervalTicks, Runnable... tasks)
    • runAtInterval

      public void runAtInterval(TimeUnit unit, long delay, long interval, Runnable... tasks)
    • runAtIntervalAsync

      public void runAtIntervalAsync(long delayTicks, long intervalTicks, Runnable... tasks)
    • runAtIntervalAsync

      public void runAtIntervalAsync(TimeUnit unit, long delay, long interval, Runnable... tasks)
    • repeat

      public void repeat(int repetitions, long intervalTicks, Runnable task, Runnable onComplete)
    • repeatAsync

      public void repeatAsync(int repetitions, long intervalTicks, Runnable task, Runnable onComplete)
    • repeatWhile

      public void repeatWhile(long interval, Callable<Boolean> predicate, Runnable task, Runnable onComplete)
    • repeatWhileAsync

      public void repeatWhileAsync(long interval, Callable<Boolean> predicate, Runnable task, Runnable onComplete)