9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-06 15:51:50 +00:00

Worldguard support

This commit is contained in:
XiaoMoMi
2024-07-29 19:24:51 +08:00
parent 0b698a0e15
commit 8c68e9257d
6 changed files with 129 additions and 4 deletions

View File

@@ -32,4 +32,8 @@ public interface Action<T> {
* @param context the context
*/
void trigger(Context<T> context);
static Action<?> empty() {
return EmptyAction.INSTANCE;
}
}

View File

@@ -34,4 +34,8 @@ public interface Requirement<T> {
* @return true if the requirement is met, false otherwise
*/
boolean isSatisfied(Context<T> context);
static Requirement<?> empty() {
return EmptyRequirement.INSTANCE;
}
}