aboutsummaryrefslogtreecommitdiffhomepage
path: root/paper-api/src/main/java/paper/brigadier/BukkitBrigadierCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'paper-api/src/main/java/paper/brigadier/BukkitBrigadierCommand.java')
-rw-r--r--paper-api/src/main/java/paper/brigadier/BukkitBrigadierCommand.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/paper-api/src/main/java/paper/brigadier/BukkitBrigadierCommand.java b/paper-api/src/main/java/paper/brigadier/BukkitBrigadierCommand.java
new file mode 100644
index 0000000000..0b1af3a8d4
--- /dev/null
+++ b/paper-api/src/main/java/paper/brigadier/BukkitBrigadierCommand.java
@@ -0,0 +1,14 @@
+package com.destroystokyo.paper.brigadier;
+
+import com.mojang.brigadier.Command;
+import com.mojang.brigadier.suggestion.SuggestionProvider;
+
+import java.util.function.Predicate;
+
+/**
+ * Brigadier {@link Command}, {@link SuggestionProvider}, and permission checker for Bukkit {@link Command}s.
+ *
+ * @param <S> command source type
+ */
+public interface BukkitBrigadierCommand <S extends BukkitBrigadierCommandSource> extends Command<S>, Predicate<S>, SuggestionProvider<S> {
+}