Class ParserBasedArgument<T>
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ParserBasedArgument<T>
- All Implemented Interfaces:
 com.mojang.brigadier.arguments.ArgumentType<T>
- Direct Known Subclasses:
 ComponentArgument,ItemPredicateArgument,NbtTagArgument,StyleArgument
public abstract class ParserBasedArgument<T>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<T>
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pSuggestionsBuilder) parse(com.mojang.brigadier.StringReader pReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, parse 
- 
Field Details
- 
parser
 
 - 
 - 
Constructor Details
- 
ParserBasedArgument
 
 - 
 - 
Method Details
- 
parse
public T parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
 parsein interfacecom.mojang.brigadier.arguments.ArgumentType<T>- Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pSuggestionsBuilder) - Specified by:
 listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
 
 -