Class RootCommandNode<S>
java.lang.Object
com.mojang.brigadier.tree.CommandNode<S>
com.mojang.brigadier.tree.RootCommandNode<S>
- All Implemented Interfaces:
Comparable<CommandNode<S>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArgumentBuilder<S, ?> booleangetName()protected StringbooleanisValidInput(String input) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) voidparse(StringReader reader, CommandContextBuilder<S> contextBuilder) toString()Methods inherited from class CommandNode
addChild, canUse, compareTo, findAmbiguities, getChild, getChildren, getCommand, getRedirect, getRedirectModifier, getRelevantNodes, getRequirement, hashCode, isFork
-
Constructor Details
-
RootCommandNode
public RootCommandNode()
-
-
Method Details
-
getName
- Specified by:
getNamein classCommandNode<S>
-
getUsageText
- Specified by:
getUsageTextin classCommandNode<S>
-
parse
public void parse(StringReader reader, CommandContextBuilder<S> contextBuilder) throws CommandSyntaxException - Specified by:
parsein classCommandNode<S>- Throws:
CommandSyntaxException
-
listSuggestions
public CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin classCommandNode<S>
-
isValidInput
- Specified by:
isValidInputin classCommandNode<S>
-
equals
- Overrides:
equalsin classCommandNode<S>
-
createBuilder
- Specified by:
createBuilderin classCommandNode<S>
-
getSortedKey
- Specified by:
getSortedKeyin classCommandNode<S>
-
getExamples
- Specified by:
getExamplesin classCommandNode<S>
-
toString
-