CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
Public Member Functions | |
CommandTree (String commandName) | |
Creates a main root node for a command tree with a given command name. More... | |
CommandTree | instance () |
void | register (String namespace) |
Registers the command with a given namespace. More... | |
void | register (JavaPlugin plugin) |
Registers this command with a given JavaPlugin instance. More... | |
Impl | then (final AbstractArgumentTree<?, Argument, CommandSender > tree) |
Create a child branch on the tree. More... | |
default Impl | executes (CommandExecutor executor, ExecutorType... types) |
Adds an executor to the current command builder. More... | |
default Impl | executes (CommandExecutionInfo executor, ExecutorType... types) |
Adds an executor to the current command builder. More... | |
default Impl | executes (ResultingCommandExecutor executor, ExecutorType... types) |
Adds an executor to the current command builder. More... | |
default Impl | executes (ResultingCommandExecutionInfo executor, ExecutorType... types) |
Adds an executor to the current command builder. More... | |
default Impl | executesPlayer (PlayerCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesPlayer (PlayerExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesPlayer (PlayerResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesPlayer (PlayerResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesEntity (EntityCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesEntity (EntityExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesEntity (EntityResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesEntity (EntityResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesProxy (ProxyCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesProxy (ProxyExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesProxy (ProxyResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesProxy (ProxyResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesCommandBlock (CommandBlockCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesCommandBlock (CommandBlockExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesCommandBlock (CommandBlockResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesCommandBlock (CommandBlockResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesConsole (ConsoleCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesConsole (ConsoleExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesConsole (ConsoleResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesConsole (ConsoleResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesNative (NativeCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesNative (NativeExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesNative (NativeResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesNative (NativeResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesRemoteConsole (RemoteConsoleCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesRemoteConsole (RemoteConsoleExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesRemoteConsole (RemoteConsoleResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesRemoteConsole (RemoteConsoleResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesFeedbackForwarding (FeedbackForwardingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesFeedbackForwarding (FeedbackForwardingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
default Impl | executesFeedbackForwarding (FeedbackForwardingResultingCommandExecutor executor) |
Adds an executor to the current command builder. More... | |
default Impl | executesFeedbackForwarding (FeedbackForwardingResultingExecutionInfo info) |
Adds an executor to the current command builder. More... | |
dev.jorel.commandapi.CommandTree.CommandTree | ( | String | commandName | ) |
Creates a main root node for a command tree with a given command name.
commandName | The name of the command to create |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (BukkitCommandExecutionInfo) -> () that will be executed when the command is run |
types | A list of executor types to use this executes method for. |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (CommandSender, Object[]) -> () that will be executed when the command is run |
types | A list of executor types to use this executes method for. |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (BukkitCommandExecutionInfo) -> int that will be executed when the command is run |
types | A list of executor types to use this executes method for. |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (CommandSender, CommandArguments) -> int that will be executed when the command is run |
types | A list of executor types to use this executes method for. |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (BlockCommandSender, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (BlockCommandSender, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (ConsoleCommandSender, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (ConsoleCommandSender, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (Entity, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (Entity, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (FeedbackForwardingCommandExecutor, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (FeedbackForwardingCommandExecutor, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (NativeCommandExecutor, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (NativeCommandExecutor, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (Player, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (Player, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (Entity, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (Entity, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (RemoteConsoleCommandExecutor, CommandArguments) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> () that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
executor | A lambda of type (RemoteConsoleResultingCommandExecutor, CommandArguments) -> int that will be executed when the command is run |
|
inherited |
Adds an executor to the current command builder.
info | A lambda of type (ExecutionInfo) -> int that will be executed when the command is run |
void dev.jorel.commandapi.CommandTree.register | ( | JavaPlugin | plugin | ) |
Registers this command with a given JavaPlugin
instance.
plugin | The plugin instance used to determine this command's namespace |
void dev.jorel.commandapi.CommandTree.register | ( | String | namespace | ) |
Registers the command with a given namespace.
namespace | The namespace of this command. This cannot be null or empty |
|
inherited |
Create a child branch on the tree.
tree | the child node |