Interface CommandManagerEvent.CommandRegistrationCallback

Enclosing interface:
CommandManagerEvent

public static interface CommandManagerEvent.CommandRegistrationCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a CommandManager 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 a CommandManager is in the process of registering commands into it. Use this to register your own commands.