| Package | Description |
|---|---|
| com.mojang.brigadier | |
| com.mojang.brigadier.builder | |
| com.mojang.brigadier.context | |
| com.mojang.brigadier.tree |
| Modifier and Type | Method and Description |
|---|---|
CommandNode<S> |
CommandDispatcher.findNode(Collection<String> path)
Finds a node by its path
|
| Modifier and Type | Method and Description |
|---|---|
Map<CommandNode<S>,CommandSyntaxException> |
ParseResults.getExceptions() |
Map<CommandNode<S>,String> |
CommandDispatcher.getSmartUsage(CommandNode<S> node,
S source)
Gets the possible executable commands from a specified node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AmbiguityConsumer.ambiguous(CommandNode<S> parent,
CommandNode<S> child,
CommandNode<S> sibling,
Collection<String> inputs) |
void |
AmbiguityConsumer.ambiguous(CommandNode<S> parent,
CommandNode<S> child,
CommandNode<S> sibling,
Collection<String> inputs) |
void |
AmbiguityConsumer.ambiguous(CommandNode<S> parent,
CommandNode<S> child,
CommandNode<S> sibling,
Collection<String> inputs) |
String[] |
CommandDispatcher.getAllUsage(CommandNode<S> node,
S source,
boolean restricted)
Gets all possible executable commands following the given node.
|
Collection<String> |
CommandDispatcher.getPath(CommandNode<S> target)
Finds a valid path to a given node on the command tree.
|
Map<CommandNode<S>,String> |
CommandDispatcher.getSmartUsage(CommandNode<S> node,
S source)
Gets the possible executable commands from a specified node.
|
| Constructor and Description |
|---|
ParseResults(CommandContextBuilder<S> context,
ImmutableStringReader reader,
Map<CommandNode<S>,CommandSyntaxException> exceptions) |
| Modifier and Type | Method and Description |
|---|---|
abstract CommandNode<S> |
ArgumentBuilder.build() |
CommandNode<S> |
ArgumentBuilder.getRedirect() |
| Modifier and Type | Method and Description |
|---|---|
Collection<CommandNode<S>> |
ArgumentBuilder.getArguments() |
| Modifier and Type | Method and Description |
|---|---|
T |
ArgumentBuilder.fork(CommandNode<S> target,
RedirectModifier<S> modifier) |
T |
ArgumentBuilder.forward(CommandNode<S> target,
RedirectModifier<S> modifier,
boolean fork) |
T |
ArgumentBuilder.redirect(CommandNode<S> target) |
T |
ArgumentBuilder.redirect(CommandNode<S> target,
SingleRedirectModifier<S> modifier) |
T |
ArgumentBuilder.then(CommandNode<S> argument) |
| Modifier and Type | Field and Description |
|---|---|
CommandNode<S> |
SuggestionContext.parent |
| Modifier and Type | Method and Description |
|---|---|
CommandNode<S> |
ParsedCommandNode.getNode() |
CommandNode<S> |
CommandContext.getRootNode() |
CommandNode<S> |
CommandContextBuilder.getRootNode() |
| Modifier and Type | Method and Description |
|---|---|
CommandContextBuilder<S> |
CommandContextBuilder.withNode(CommandNode<S> node,
StringRange range) |
| Constructor and Description |
|---|
CommandContext(S source,
String input,
Map<String,ParsedArgument<S,?>> arguments,
Command<S> command,
CommandNode<S> rootNode,
List<ParsedCommandNode<S>> nodes,
StringRange range,
CommandContext<S> child,
RedirectModifier<S> modifier,
boolean forks) |
CommandContextBuilder(CommandDispatcher<S> dispatcher,
S source,
CommandNode<S> rootNode,
int start) |
ParsedCommandNode(CommandNode<S> node,
StringRange range) |
SuggestionContext(CommandNode<S> parent,
int startPos) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArgumentCommandNode<S,T> |
class |
LiteralCommandNode<S> |
class |
RootCommandNode<S> |
| Modifier and Type | Method and Description |
|---|---|
CommandNode<S> |
CommandNode.getChild(String name) |
CommandNode<S> |
CommandNode.getRedirect() |
| Modifier and Type | Method and Description |
|---|---|
Collection<CommandNode<S>> |
CommandNode.getChildren() |
Collection<? extends CommandNode<S>> |
CommandNode.getRelevantNodes(StringReader input) |
| Modifier and Type | Method and Description |
|---|---|
void |
CommandNode.addChild(CommandNode<S> node) |
int |
CommandNode.compareTo(CommandNode<S> o) |
| Constructor and Description |
|---|
ArgumentCommandNode(String name,
ArgumentType<T> type,
Command<S> command,
java.util.function.Predicate<S> requirement,
CommandNode<S> redirect,
RedirectModifier<S> modifier,
boolean forks,
SuggestionProvider<S> customSuggestions) |
CommandNode(Command<S> command,
java.util.function.Predicate<S> requirement,
CommandNode<S> redirect,
RedirectModifier<S> modifier,
boolean forks) |
LiteralCommandNode(String literal,
Command<S> command,
java.util.function.Predicate<S> requirement,
CommandNode<S> redirect,
RedirectModifier<S> modifier,
boolean forks) |
Copyright © 2018. All rights reserved.