Package com.velocitypowered.api.command
Class BrigadierCommand
- java.lang.Object
-
- com.velocitypowered.api.command.BrigadierCommand
-
-
Field Summary
Fields Modifier and Type Field Description static int
FORWARD
The return code used by aCommand
to indicate the command execution should be forwarded to the backend server.
-
Constructor Summary
Constructors Constructor Description BrigadierCommand(com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> builder)
Constructs aBrigadierCommand
from the node returned by the given builder.BrigadierCommand(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> node)
Constructs aBrigadierCommand
from the given command node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mojang.brigadier.tree.LiteralCommandNode<CommandSource>
getNode()
Returns the literal node for this command.
-
-
-
Field Detail
-
FORWARD
public static final int FORWARD
The return code used by aCommand
to indicate the command execution should be forwarded to the backend server.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BrigadierCommand
public BrigadierCommand(com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> builder)
Constructs aBrigadierCommand
from the node returned by the given builder.- Parameters:
builder
- theLiteralCommandNode
builder
-
BrigadierCommand
public BrigadierCommand(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> node)
Constructs aBrigadierCommand
from the given command node.- Parameters:
node
- the command node
-
-
Method Detail
-
getNode
public com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> getNode()
Returns the literal node for this command.- Returns:
- the command node
-
-