Package org.incendo.cloud.brigadier.util
Class BrigadierUtil
java.lang.Object
org.incendo.cloud.brigadier.util.BrigadierUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> com.mojang.brigadier.tree.LiteralCommandNode<S>buildRedirect(@NonNull String alias, @NonNull com.mojang.brigadier.tree.CommandNode<S> destination) Returns a literal node that redirects its execution to the given destination node.
-
Method Details
-
buildRedirect
public static <S> com.mojang.brigadier.tree.LiteralCommandNode<S> buildRedirect(@NonNull String alias, @NonNull com.mojang.brigadier.tree.CommandNode<S> destination) Returns a literal node that redirects its execution to the given destination node.This method is taken from MIT licensed code in the Velocity project, see Velocity's BrigadierUtils class
- Type Parameters:
S- brig sender type- Parameters:
alias- the command aliasdestination- the destination node- Returns:
- the built node
-