Interface ClientCommandRegistrationCallback


public interface ClientCommandRegistrationCallback
Deprecated.
Use Quilt Command API's ClientCommandRegistrationCallback instead.
Callback for when client commands are registered to the dispatcher.

To register some commands, you would register an event listener and implement the callback.

See ClientCommandManager for more details and an example.

  • Field Details

  • Method Details

    • register

      void register(com.mojang.brigadier.CommandDispatcher<FabricClientCommandSource> dispatcher, CommandRegistryAccess registryAccess)
      Deprecated.
      Called when registering client commands.
      Parameters:
      dispatcher - the command dispatcher to register commands to
      registryAccess - object exposing access to the game's registries