Class AllCommands
java.lang.Object
com.simibubi.create.foundation.command.AllCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Predicate<net.minecraft.commands.CommandSourceStack> -
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) ***** https://github.com/VelocityPowered/Velocity/blob/8abc9c80a69158ebae0121fda78b55c865c0abad/proxy/src/main/java/com/velocitypowered/proxy/util/BrigadierUtils.java#L38 *****static voidregister(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher)
-
Field Details
-
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 aliasdestination- the destination node- Returns:
- the built node
-