-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(minecraft/scheduler): add isCancelled and getTaskId methods to S…
…chedulerTask interface and implementations This commit adds two new methods to the SchedulerTask interface and its implementations: MinecraftFoliaScheduler and MinecraftBukkitScheduler. The isCancelled method returns true if the task has been cancelled, and the getTaskId method returns the unique id of the task. FoliaMC does not provide a task id.
- Loading branch information
1 parent
9eb4f8f
commit a293366
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,8 @@ public interface SchedulerTask { | |
|
||
void cancel(); | ||
|
||
boolean isCancelled(); | ||
|
||
int getTaskId(); | ||
|
||
} |