Class PaperScheduledTask
java.lang.Object
be.seeseemelk.mockbukkit.scheduler.paper.PaperScheduledTask
- All Implemented Interfaces:
ScheduledTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.threadedregions.scheduler.ScheduledTask
ScheduledTask.CancelledState, ScheduledTask.ExecutionState -
Constructor Summary
ConstructorsConstructorDescriptionPaperScheduledTask(Plugin plugin, @NotNull Consumer<ScheduledTask> consumer) Constructs a newPaperScheduledTaskwith the provided parameters. -
Method Summary
Modifier and TypeMethodDescription@NotNull ScheduledTask.CancelledStatecancel()@NotNull ScheduledTask.ExecutionState@NotNull Pluginbooleanvoidrun()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.papermc.paper.threadedregions.scheduler.ScheduledTask
isCancelled
-
Constructor Details
-
PaperScheduledTask
Constructs a newPaperScheduledTaskwith the provided parameters.- Parameters:
plugin- The plugin owning the task.consumer- The consumer to run.
-
-
Method Details
-
getOwningPlugin
- Specified by:
getOwningPluginin interfaceScheduledTask
-
isRepeatingTask
public boolean isRepeatingTask()- Specified by:
isRepeatingTaskin interfaceScheduledTask
-
run
public void run() -
cancel
- Specified by:
cancelin interfaceScheduledTask
-
getExecutionState
- Specified by:
getExecutionStatein interfaceScheduledTask
-