Class CatnipCommands

java.lang.Object
net.createmod.catnip.command.CatnipCommands

public class CatnipCommands extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack>
    buildRedirect(String alias, com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> destination)
    ***** Source *****
    static void
    createOrAddToShortcut(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, String shortcut, com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> createRoot)
     
    static void
    register(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 alias
      destination - 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)