CommandAPI 8.8.0
An API for the command UI introduced in Minecraft 1.13
|
An interface that includes the type of an executor (what command senders it can execute) and has a method that executes an executor with a given command sender and arguments. More...
Public Member Functions | |
default ExecutorType | getType () |
Returns the type of the sender of the current executor. More... | |
int | executeWith (CommandSender sender, Object[] args) throws WrapperCommandSyntaxException |
Executes the command executor with the provided command sender and the provided arguments. More... | |
An interface that includes the type of an executor (what command senders it can execute) and has a method that executes an executor with a given command sender and arguments.
int dev.jorel.commandapi.executors.IExecutorTyped.executeWith | ( | CommandSender | sender, |
Object[] | args | ||
) | throws WrapperCommandSyntaxException |
Executes the command executor with the provided command sender and the provided arguments.
sender | the command sender for this command |
args | the arguments provided to this command |
WrapperCommandSyntaxException | if an error occurs during the execution of this command |
Implemented in dev.jorel.commandapi.executors.IExecutorNormal< T extends CommandSender >, and dev.jorel.commandapi.executors.IExecutorResulting< T extends CommandSender >.
default ExecutorType dev.jorel.commandapi.executors.IExecutorTyped.getType | ( | ) |
Returns the type of the sender of the current executor.