public class AllCommands
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Predicate<net.minecraft.command.CommandSource> |
SOURCE_IS_PLAYER |
| Constructor and Description |
|---|
AllCommands() |
| Modifier and Type | Method and Description |
|---|---|
static com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.command.CommandSource> |
buildRedirect(java.lang.String alias,
com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.command.CommandSource> 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.command.CommandSource> dispatcher) |
public static final java.util.function.Predicate<net.minecraft.command.CommandSource> SOURCE_IS_PLAYER
public static void register(com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> dispatcher)
public static com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.command.CommandSource> buildRedirect(java.lang.String alias,
com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.command.CommandSource> destination)
Returns a literal node that redirects its execution to the given destination node.
alias - the command aliasdestination - the destination node