Interface CommandRegistrationEvent
public interface CommandRegistrationEvent
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionvoidregister(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, net.minecraft.commands.Commands.CommandSelection selection) This event is invoked after the server registers it's commands. 
- 
Field Details
- 
EVENT
 
 - 
 - 
Method Details
- 
register
void register(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, net.minecraft.commands.Commands.CommandSelection selection) This event is invoked after the server registers it's commands. Equivalent to Forge'sRegisterCommandsEventand Fabric'sCommandRegistrationCallback.- Parameters:
 dispatcher- The command dispatcher to register commands to.selection- The selection where the command can be executed.
 
 -