Interface CommandRegistrationEvent
public interface CommandRegistrationEvent
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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'sRegisterCommandsEvent
and Fabric'sCommandRegistrationCallback
.- Parameters:
dispatcher
- The command dispatcher to register commands to.selection
- The selection where the command can be executed.
-