Package net.createmod.catnip.command
Class CatnipCommands
java.lang.Object
net.createmod.catnip.command.CatnipCommands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack>buildRedirect(String alias, com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> destination) ***** Source *****static voidcreateOrAddToShortcut(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, String shortcut, com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> createRoot) static voidregister(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher)
-
Constructor Details
-
CatnipCommands
public CatnipCommands()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) -
buildRedirect
public static com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> buildRedirect(String alias, com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> destination) ***** Source *****Returns a literal node that redirects its execution to the given destination node.
- Parameters:
alias- the command aliasdestination- the destination node- Returns:
- the built node
-
createOrAddToShortcut
public static void createOrAddToShortcut(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, String shortcut, com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> createRoot)
-