Class AllCommands

java.lang.Object
com.simibubi.create.foundation.command.AllCommands

public class AllCommands extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Predicate<net.minecraft.commands.CommandSourceStack>
     
  • 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)
    ***** https://github.com/VelocityPowered/Velocity/blob/8abc9c80a69158ebae0121fda78b55c865c0abad/proxy/src/main/java/com/velocitypowered/proxy/util/BrigadierUtils.java#L38 *****
    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
  • Field Details

    • SOURCE_IS_PLAYER

      public static final Predicate<net.minecraft.commands.CommandSourceStack> SOURCE_IS_PLAYER
  • Constructor Details

    • AllCommands

      public AllCommands()
  • 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)
      ***** https://github.com/VelocityPowered/Velocity/blob/8abc9c80a69158ebae0121fda78b55c865c0abad/proxy/src/main/java/com/velocitypowered/proxy/util/BrigadierUtils.java#L38 *****

      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