Class PaperScheduler
java.lang.Object
net.tnemc.plugincore.core.compatibility.scheduler.SchedulerProvider<PaperChore>
net.tnemc.plugincore.paper.impl.scheduler.PaperScheduler
BukkitScheduler
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDelayedTask(Runnable task, ChoreTime delay, ChoreExecution environment) Used to create a task, which will execute after the specified delay.createRepeatingTask(Runnable task, ChoreTime delay, ChoreTime period, ChoreExecution environment) Used to create a task, which repeats after a specified period.Methods inherited from class net.tnemc.plugincore.core.compatibility.scheduler.SchedulerProvider
cancelTask, createRepeatingTaskID
-
Constructor Details
-
PaperScheduler
public PaperScheduler()
-
-
Method Details
-
createDelayedTask
Used to create a task, which will execute after the specified delay.- Specified by:
createDelayedTaskin classSchedulerProvider<PaperChore>- Parameters:
task- The task to run.delay- The delay, in ticks.environment- The execution environment for the task.
-
createRepeatingTask
public PaperChore createRepeatingTask(Runnable task, ChoreTime delay, ChoreTime period, ChoreExecution environment) Used to create a task, which repeats after a specified period.- Specified by:
createRepeatingTaskin classSchedulerProvider<PaperChore>- Parameters:
task- The task to run.delay- The delay to run the task, in ticks.period- The period to run the task.environment- The execution environment for the task.- Returns:
- The associated
Chorewith this task.
-