Class BukkitTaskManager

java.lang.Object
com.plotsquared.core.util.task.TaskManager
com.plotsquared.bukkit.util.task.BukkitTaskManager

public class BukkitTaskManager extends com.plotsquared.core.util.task.TaskManager
Bukkit implementation of TaskManager using by BukkitScheduler and BukkitPlotSquaredTask
  • Constructor Details

  • Method Details

    • taskRepeat

      public com.plotsquared.core.util.task.PlotSquaredTask taskRepeat(@NonNull Runnable runnable, @NonNull com.plotsquared.core.util.task.TaskTime taskTime)
      Specified by:
      taskRepeat in class com.plotsquared.core.util.task.TaskManager
    • taskRepeatAsync

      public com.plotsquared.core.util.task.PlotSquaredTask taskRepeatAsync(@NonNull Runnable runnable, @NonNull com.plotsquared.core.util.task.TaskTime taskTime)
      Specified by:
      taskRepeatAsync in class com.plotsquared.core.util.task.TaskManager
    • taskAsync

      public void taskAsync(@NonNull Runnable runnable)
      Specified by:
      taskAsync in class com.plotsquared.core.util.task.TaskManager
    • sync

      public <T> T sync(@NonNull Callable<T> function, int timeout) throws Exception
      Specified by:
      sync in class com.plotsquared.core.util.task.TaskManager
      Throws:
      Exception
    • callMethodSync

      public <T> Future<T> callMethodSync(@NonNull Callable<T> method)
      Specified by:
      callMethodSync in class com.plotsquared.core.util.task.TaskManager
    • task

      public void task(@NonNull Runnable runnable)
      Specified by:
      task in class com.plotsquared.core.util.task.TaskManager
    • taskLater

      public void taskLater(@NonNull Runnable runnable, @NonNull com.plotsquared.core.util.task.TaskTime taskTime)
      Specified by:
      taskLater in class com.plotsquared.core.util.task.TaskManager
    • taskLaterAsync

      public void taskLaterAsync(@NonNull Runnable runnable, @NonNull com.plotsquared.core.util.task.TaskTime taskTime)
      Specified by:
      taskLaterAsync in class com.plotsquared.core.util.task.TaskManager