aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/modifier.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-brigadier/src/modifier.rs')
-rwxr-xr-xazalea-brigadier/src/modifier.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-brigadier/src/modifier.rs b/azalea-brigadier/src/modifier.rs
new file mode 100755
index 00000000..d40d59f9
--- /dev/null
+++ b/azalea-brigadier/src/modifier.rs
@@ -0,0 +1,6 @@
+use std::rc::Rc;
+
+use crate::{context::CommandContext, exceptions::CommandSyntaxException};
+
+pub type RedirectModifier<S> =
+ dyn Fn(&CommandContext<S>) -> Result<Vec<Rc<S>>, CommandSyntaxException>;