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> p_410523_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_409586_) parse
(com.mojang.brigadier.StringReader p_410815_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 p_410815_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in 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> p_410523_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_409586_) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-