Search in sources :

Example 6 with ArgConsumer

use of baritone.command.argument.ArgConsumer in project baritone by cabaletta.

the class CommandManager method from.

private ExecutionWrapper from(Tuple<String, List<ICommandArgument>> expanded) {
    String label = expanded.getFirst();
    ArgConsumer args = new ArgConsumer(this, expanded.getSecond());
    ICommand command = this.getCommand(label);
    return command == null ? null : new ExecutionWrapper(command, label, args);
}
Also used : ICommand(baritone.api.command.ICommand) ArgConsumer(baritone.command.argument.ArgConsumer)

Aggregations

ArgConsumer (baritone.command.argument.ArgConsumer)6 Settings (baritone.api.Settings)4 CommandNotEnoughArgumentsException (baritone.api.command.exception.CommandNotEnoughArgumentsException)4 ICommand (baritone.api.command.ICommand)2 ICommandArgument (baritone.api.command.argument.ICommandArgument)2 TabCompleteHelper (baritone.api.command.helpers.TabCompleteHelper)2 URI (java.net.URI)2 List (java.util.List)2 TextComponentString (net.minecraft.util.text.TextComponentString)2