public class ArgumentCommandNode<S,T> extends CommandNode<S>
| 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) |
| Modifier and Type | Method and Description |
|---|---|
RequiredArgumentBuilder<S,T> |
createBuilder() |
boolean |
equals(Object o) |
SuggestionProvider<S> |
getCustomSuggestions() |
Collection<String> |
getExamples() |
String |
getName() |
protected String |
getSortedKey() |
ArgumentType<T> |
getType() |
String |
getUsageText() |
int |
hashCode() |
boolean |
isValidInput(String input) |
CompletableFuture<Suggestions> |
listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
void |
parse(StringReader reader,
CommandContextBuilder<S> contextBuilder) |
String |
toString() |
addChild, canUse, compareTo, findAmbiguities, getChild, getChildren, getCommand, getRedirect, getRedirectModifier, getRelevantNodes, getRequirement, isForkpublic 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)
public ArgumentType<T> getType()
public String getName()
getName in class CommandNode<S>public String getUsageText()
getUsageText in class CommandNode<S>public SuggestionProvider<S> getCustomSuggestions()
public void parse(StringReader reader, CommandContextBuilder<S> contextBuilder) throws CommandSyntaxException
parse in class CommandNode<S>CommandSyntaxExceptionpublic CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) throws CommandSyntaxException
listSuggestions in class CommandNode<S>CommandSyntaxExceptionpublic RequiredArgumentBuilder<S,T> createBuilder()
createBuilder in class CommandNode<S>public boolean isValidInput(String input)
isValidInput in class CommandNode<S>public boolean equals(Object o)
equals in class CommandNode<S>public int hashCode()
hashCode in class CommandNode<S>protected String getSortedKey()
getSortedKey in class CommandNode<S>public Collection<String> getExamples()
getExamples in class CommandNode<S>Copyright © 2018. All rights reserved.