CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.ResultConsumer< S > Interface Template Reference

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...
 

Detailed Description

A consumer that is called by the CommandDispatcher whenever a command completed.

Parameters
<S>the type of the command source

Member Function Documentation

◆ onCommandComplete()

void com.mojang.brigadier.ResultConsumer< S >.onCommandComplete ( CommandContext< S >  context,
boolean  success,
int  result 
)

Invoked when a command execution completed, either normally or abnormally.

Parameters
contextthe command context of the execution
successwhether the command completed successfully
resultthe result of the command, if it completed successfully. If not, the meaning of the result is not defined.