CommandAPI 9.4.1
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 (ExecutionInfo< CommandSender, WrapperType > info) 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.
<WrapperType> | The AbstractCommandSenderClass for this executor |
int dev.jorel.commandapi.executors.TypedExecutor< CommandSender, WrapperType >.executeWith | ( | ExecutionInfo< CommandSender, WrapperType > | info | ) | throws WrapperCommandSyntaxException |
Executes the command executor with the provided command sender and the provided arguments.
info | The ExecutionInfo for this command |
WrapperCommandSyntaxException | if an error occurs during the execution of this command |
Implemented in dev.jorel.commandapi.executors.NormalExecutor< CommandSender, WrapperType >, and dev.jorel.commandapi.executors.ResultingExecutor< CommandSender, WrapperType >.
default ExecutorType dev.jorel.commandapi.executors.TypedExecutor< CommandSender, WrapperType >.getType | ( | ) |
Returns the type of the sender of the current executor.