Package net.fabricmc.fabric.api.registry
Class CommandRegistry
java.lang.Object
net.fabricmc.fabric.api.registry.CommandRegistry
Deprecated.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
INSTANCE
Deprecated.
-
-
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, consumingCommandDispatcher
.
-
CommandRegistrationCallback
instead.