| Modifier and Type | Field and Description |
|---|---|
static int |
FORWARD
Return code used by a
Command to indicate
the command execution should be forwarded to the backend server. |
| Constructor and Description |
|---|
BrigadierCommand(com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> builder)
Constructs a
BrigadierCommand from the node returned by
the given builder. |
BrigadierCommand(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> node)
Constructs a
BrigadierCommand from the given command node. |
| Modifier and Type | Method and Description |
|---|---|
com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> |
getNode()
Returns the literal node for this command.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, hasPermission, suggest, suggestAsyncpublic static final int FORWARD
Command to indicate
the command execution should be forwarded to the backend server.public BrigadierCommand(com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> builder)
BrigadierCommand from the node returned by
the given builder.builder - the LiteralCommandNode builderpublic BrigadierCommand(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> node)
BrigadierCommand from the given command node.node - the command nodepublic com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> getNode()