Package dev.jorel.commandapi
Class Execution<CommandSender,Argument extends AbstractArgument<?,?,Argument,CommandSender>>
java.lang.Object
dev.jorel.commandapi.Execution<CommandSender,Argument>
public class Execution<CommandSender,Argument extends AbstractArgument<?,?,Argument,CommandSender>>
extends Object
A list of arguments which results in an execution. This is used for building branches in a
AbstractCommandTree-
Constructor Summary
ConstructorsConstructorDescriptionExecution(List<Argument> arguments, CommandAPIExecutor<CommandSender, AbstractCommandSender<? extends CommandSender>> executor) -
Method Summary
Modifier and TypeMethodDescriptionprependedBy(Argument argument) voidregister(dev.jorel.commandapi.CommandMetaData<CommandSender> meta) Register a command with the given arguments and executor to brigadier, by converting it into aAbstractCommandAPICommand
-
Constructor Details
-
Execution
public Execution(List<Argument> arguments, CommandAPIExecutor<CommandSender, AbstractCommandSender<? extends CommandSender>> executor)
-
-
Method Details
-
register
Register a command with the given arguments and executor to brigadier, by converting it into aAbstractCommandAPICommand- Parameters:
meta- The metadata to register the command with
-
prependedBy
-