CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
This is a base class for arguments, allowing them to behave as tree nodes in a AbstractCommandTree
.
More...
Public Member Functions | |
Impl | then (final AbstractArgumentTree<?, Argument, CommandSender > tree) |
Create a child branch on this node. More... | |
CommandAPIExecutor< CommandSender, AbstractCommandSender<? extends CommandSender > > | getExecutor () |
Returns the executors that this command has. More... | |
void | setExecutor (CommandAPIExecutor< CommandSender, AbstractCommandSender<? extends CommandSender > > executor) |
Sets the executors for this command. More... | |
Impl | clearExecutors () |
Clear all executors from the current command builder. More... | |
Impl | instance () |
Returns the instance of this class with the class Impl. More... | |
Protected Member Functions | |
AbstractArgumentTree () | |
Instantiates an AbstractArgumentTree . More... | |
AbstractArgumentTree (final Argument argument) | |
Instantiates an AbstractArgumentTree with an underlying argument. More... | |
Protected Attributes | |
CommandAPIExecutor< CommandSender, AbstractCommandSender<? extends CommandSender > > | executor = new CommandAPIExecutor<>() |
The CommandAPIExecutor for this executable implementation. | |
This is a base class for arguments, allowing them to behave as tree nodes in a AbstractCommandTree
.
<Impl>The | class extending this class, used as the return type for chain calls |
<CommandSender> | The CommandSender class used by the class extending this class |
|
protected |
Instantiates an AbstractArgumentTree
.
This can only be called if the class that extends this is an AbstractArgument
|
protected |
Instantiates an AbstractArgumentTree
with an underlying argument.
argument | the argument to use as the underlying argument for this argument tree |
|
inherited |
Clear all executors from the current command builder.
|
inherited |
Returns the executors that this command has.
|
inherited |
Returns the instance of this class with the class Impl.
Used for chaining builder methods.
Implemented in dev.jorel.commandapi.arguments.Argument< T >.
|
inherited |
Sets the executors for this command.
executor | the executors for this command |
Impl dev.jorel.commandapi.AbstractArgumentTree< Impl, Argument, CommandSender >.then | ( | final AbstractArgumentTree<?, Argument, CommandSender > | tree | ) |
Create a child branch on this node.
tree | The child branch |