| Package | Description |
|---|---|
| com.mojang.brigadier | |
| com.mojang.brigadier.arguments | |
| com.mojang.brigadier.context | |
| com.mojang.brigadier.suggestion | |
| com.mojang.brigadier.tree |
| Modifier and Type | Method and Description |
|---|---|
S |
SingleRedirectModifier.apply(CommandContext<S> context) |
Collection<S> |
RedirectModifier.apply(CommandContext<S> context) |
void |
ResultConsumer.onCommandComplete(CommandContext<S> context,
boolean success,
int result) |
int |
Command.run(CommandContext<S> context) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BoolArgumentType.getBool(CommandContext<?> context,
String name) |
static double |
DoubleArgumentType.getDouble(CommandContext<?> context,
String name) |
static float |
FloatArgumentType.getFloat(CommandContext<?> context,
String name) |
static int |
IntegerArgumentType.getInteger(CommandContext<?> context,
String name) |
static long |
LongArgumentType.getLong(CommandContext<?> context,
String name) |
static String |
StringArgumentType.getString(CommandContext<?> context,
String name) |
default <S> CompletableFuture<Suggestions> |
ArgumentType.listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
<S> CompletableFuture<Suggestions> |
BoolArgumentType.listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
CommandContext<S> |
CommandContextBuilder.build(String input) |
CommandContext<S> |
CommandContext.copyFor(S source) |
CommandContext<S> |
CommandContext.getChild() |
CommandContext<S> |
CommandContext.getLastChild() |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Suggestions> |
SuggestionProvider.getSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Suggestions> |
ArgumentCommandNode.listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
CompletableFuture<Suggestions> |
LiteralCommandNode.listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
abstract CompletableFuture<Suggestions> |
CommandNode.listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
CompletableFuture<Suggestions> |
RootCommandNode.listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
Copyright © 2018. All rights reserved.