Interface CommandManagerEvent.CommandRegistrationCallback
- Enclosing interface:
- CommandManagerEvent
public static interface CommandManagerEvent.CommandRegistrationCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, net.minecraft.command.CommandRegistryAccess registryAccess, net.minecraft.server.command.CommandManager.RegistrationEnvironment environment) Invoked when aCommandManager
is in the process of registering commands into it.
-
Method Details
-
invoke
void invoke(com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, net.minecraft.command.CommandRegistryAccess registryAccess, net.minecraft.server.command.CommandManager.RegistrationEnvironment environment) Invoked when aCommandManager
is in the process of registering commands into it. Use this to register your own commands.
-