CommandAPI 9.4.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.Execution< CommandSender, Argument > Class Template Reference

A list of arguments which results in an execution. More...

Public Member Functions

 Execution (List< Argument > arguments, CommandAPIExecutor< CommandSender, AbstractCommandSender<? extends CommandSender > > executor)
 
void register (CommandMetaData< CommandSender > meta, String namespace)
 Register a command with the given arguments and executor to brigadier, by converting it into a AbstractCommandAPICommand. More...
 
Execution< CommandSender, ArgumentprependedBy (Argument argument)
 

Detailed Description

A list of arguments which results in an execution.

This is used for building branches in a AbstractCommandTree

Member Function Documentation

◆ register()

void dev.jorel.commandapi.Execution< CommandSender, Argument >.register ( CommandMetaData< CommandSender >  meta,
String  namespace 
)

Register a command with the given arguments and executor to brigadier, by converting it into a AbstractCommandAPICommand.

Parameters
metaThe metadata to register the command with
namespaceThe namespace to use for this command