Class CommandRegistry

java.lang.Object
net.fabricmc.fabric.api.registry.CommandRegistry

@Deprecated public class CommandRegistry extends Object
Deprecated.
Please migrate to v2. Please use CommandRegistrationCallback instead.
  • Field Details Link icon

  • Constructor Details Link icon

    • CommandRegistry Link icon

      public CommandRegistry()
      Deprecated.
  • Method Details Link icon

    • register Link icon

      public void register(boolean dedicated, Consumer<com.mojang.brigadier.CommandDispatcher<ServerCommandSource>> consumer)
      Deprecated.
      Register a command provider.
      Parameters:
      dedicated - If true, the command is only registered on the dedicated server.
      consumer - The command provider, consuming CommandDispatcher.