-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cancellable tasks, Add entity tasks, Remove scopes and use separate method names instead, Change server version checks to use class names instead of version name
- Loading branch information
1 parent
3f228ad
commit 0e87f0a
Showing
12 changed files
with
547 additions
and
129 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
9 changes: 9 additions & 0 deletions
9
src/main/java/com/tcoded/folialib/enums/EntityTaskResult.java
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.tcoded.folialib.enums; | ||
|
||
public enum EntityTaskResult { | ||
|
||
SUCCESS, | ||
ENTITY_RETIRED, | ||
SCHEDULER_RETIRED | ||
|
||
} |
23 changes: 19 additions & 4 deletions
23
src/main/java/com/tcoded/folialib/enums/ImplementationType.java
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 |
---|---|---|
@@ -1,8 +1,23 @@ | ||
package com.tcoded.folialib.enums; | ||
|
||
public enum ImplementationType { | ||
SPIGOT, | ||
PAPER, | ||
FOLIA, | ||
UNKNOWN | ||
|
||
// Ordered by priority | ||
@SuppressWarnings("SpellCheckingInspection") | ||
FOLIA ("io.papermc.paper.threadedregions.RegionizedServer"), | ||
@SuppressWarnings("SpellCheckingInspection") | ||
PAPER ("com.destroystokyo.paper.PaperConfig", "io.papermc.paper.configuration.Configuration"), | ||
@SuppressWarnings("SpellCheckingInspection") | ||
SPIGOT ("org.spigotmc.SpigotConfig"), | ||
UNKNOWN; | ||
|
||
private final String[] classNames; | ||
|
||
ImplementationType(String... classNames) { | ||
this.classNames = classNames; | ||
} | ||
|
||
public String[] getClassNames() { | ||
return classNames; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.