Package org.spongepowered.api.scheduler
Interface ScheduledTask
- All Superinterfaces:
Identifiable
,Nameable
-
Method Summary
Methods inherited from interface org.spongepowered.api.util.Identifiable
uniqueId
-
Method Details
-
scheduler
Scheduler scheduler()- Returns:
- The
scheduler
-
task
Task task()- Returns:
- The
Task
-
cancel
boolean cancel()Cancels this scheduled task. Cancelling a repeating task will prevent any further repetitions of the task.- Returns:
- If the task is not running and was cancelled
-
isCancelled
boolean isCancelled()Gets whether this scheduled task has been cancelled.- Returns:
- True if cancelled, false otherwise
-