Package net.fabricmc.fabric.api.registry
Class CommandRegistry
java.lang.Object
net.fabricmc.fabric.api.registry.CommandRegistry
Deprecated.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(boolean dedicated, Consumer<com.mojang.brigadier.CommandDispatcher<ServerCommandSource>> consumer) Deprecated.Register a command provider.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Constructor Details
-
CommandRegistry
public CommandRegistry()Deprecated.
-
-
Method Details
-
register
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, consumingCommandDispatcher.
-
CommandRegistrationCallbackinstead.