|
CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
A consumer that is called by the CommandDispatcher whenever a command completed.
More...
Public Member Functions | |
| void | onCommandComplete (CommandContext< S > context, boolean success, int result) |
| Invoked when a command execution completed, either normally or abnormally. More... | |
A consumer that is called by the CommandDispatcher whenever a command completed.
| <S> | the type of the command source |
| void com.mojang.brigadier.ResultConsumer< S >.onCommandComplete | ( | CommandContext< S > | context, |
| boolean | success, | ||
| int | result | ||
| ) |
Invoked when a command execution completed, either normally or abnormally.
| context | the command context of the execution |
| success | whether the command completed successfully |
| result | the result of the command, if it completed successfully. If not, the meaning of the result is not defined. |