diff options
Diffstat (limited to 'azalea-brigadier/src/context/command_context.rs')
| -rw-r--r-- | azalea-brigadier/src/context/command_context.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-brigadier/src/context/command_context.rs b/azalea-brigadier/src/context/command_context.rs index 224f2d63..d50c94ab 100644 --- a/azalea-brigadier/src/context/command_context.rs +++ b/azalea-brigadier/src/context/command_context.rs @@ -10,7 +10,7 @@ use crate::{ /// A built `CommandContextBuilder`. pub struct CommandContext<S> { - pub(super) source: Arc<S>, + pub source: Arc<S>, pub(super) input: String, pub(super) arguments: HashMap<String, ParsedArgument>, pub(super) command: Command<S>, @@ -93,10 +93,6 @@ impl<S> CommandContext<S> { &self.command } - pub fn source(&self) -> &Arc<S> { - &self.source - } - pub fn argument(&self, name: &str) -> Option<&dyn Any> { let argument = self.arguments.get(name); argument.map(|a| a.result.as_ref()) |
