azalea_brigadier::arguments

Trait ArgumentType

Source
pub trait ArgumentType {
    // Required method
    fn parse(
        &self,
        reader: &mut StringReader,
    ) -> Result<Arc<dyn Any>, CommandSyntaxException>;

    // Provided methods
    fn list_suggestions(&self, _builder: SuggestionsBuilder) -> Suggestions { ... }
    fn examples(&self) -> Vec<String> { ... }
}

Required Methods§

Source

fn parse( &self, reader: &mut StringReader, ) -> Result<Arc<dyn Any>, CommandSyntaxException>

Provided Methods§

Implementors§