Class ParserBasedArgument<T>
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ParserBasedArgument<T>
- All Implemented Interfaces:
ArgumentType<T>
- Direct Known Subclasses:
ComponentArgument, ItemPredicateArgument, NbtTagArgument, StyleArgument
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
getExamples, parse
-
Field Details
-
parser
-
-
Constructor Details
-
ParserBasedArgument
-
-
Method Details
-
parse
- Specified by:
parsein interfaceArgumentType<T>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<T>
-