Record Class ArgumentParser<T>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.packrat.ArgumentParser<T>
- Record Components:
- rules-
- top-
public record ArgumentParser<T>(ParsingRules<com.mojang.brigadier.StringReader> rules, Symbol<T> top)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/packrat/ArgumentParser- intermediary - net/minecraft/class_9408- official - bod- named - rules- intermediary - comp_2484- official - a- named - top- intermediary - comp_2485- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionArgumentParser(ParsingRules<com.mojang.brigadier.StringReader> parsingRules, Symbol<T> symbol) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) ParsingRules<com.mojang.brigadier.StringReader> rules()Returns the value of therulesrecord component.startParsing(ParsingState<com.mojang.brigadier.StringReader> state) top()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
ArgumentParserpublic ArgumentParser(ParsingRules<com.mojang.brigadier.StringReader> parsingRules, Symbol<T> symbol) 
 
- 
- 
Method Details- 
startParsing- Mappings:
- Namespace - Name - Mixin selector - named - startParsing- Lnet/minecraft/command/argument/packrat/ArgumentParser;startParsing(Lnet/minecraft/command/argument/packrat/ParsingState;)Ljava/util/Optional;- intermediary - method_58340- Lnet/minecraft/class_9408;method_58340(Lnet/minecraft/class_9393;)Ljava/util/Optional;- official - a- Lbod;a(Lbny;)Ljava/util/Optional;
 
- 
parsepublic T parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - parse- Lnet/minecraft/command/argument/packrat/ArgumentParser;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;- intermediary - method_58341- Lnet/minecraft/class_9408;method_58341(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;- official - a- Lbod;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
 
- 
listSuggestionspublic CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
- Namespace - Name - Mixin selector - named - listSuggestions- Lnet/minecraft/command/argument/packrat/ArgumentParser;listSuggestions(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - method_58342- Lnet/minecraft/class_9408;method_58342(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- official - a- Lbod;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
rulesReturns the value of therulesrecord component.- Returns:
- the value of the rulesrecord component
 
- 
topReturns the value of thetoprecord component.- Returns:
- the value of the toprecord component
 
 
-