Class CommandRegistry

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

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

  • Constructor Details

    • CommandRegistry

      public CommandRegistry()
      Deprecated.
  • Method Details

    • register

      public void register(boolean dedicated, Consumer<com.mojang.brigadier.CommandDispatcher<net.minecraft.server.command.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.