Record Class ArgumentParser<T>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.packrat.ArgumentParser<T>
- Record Components:
rules-top-
- All Implemented Interfaces:
class_10846<T>
public record ArgumentParser<T>(ParsingRules<com.mojang.brigadier.StringReader> rules, class_10842<com.mojang.brigadier.StringReader,T> top)
extends Record
implements class_10846<T>
- Mappings:
Namespace Name named net/minecraft/command/argument/packrat/ArgumentParserintermediary net/minecraft/class_9408official bqfnamed rulesintermediary comp_2484official anamed topintermediary comp_2485official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ParsingRules<com.mojang.brigadier.StringReader> The field for therulesrecord component.private final class_10842<com.mojang.brigadier.StringReader, T> The field for thetoprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionArgumentParser(ParsingRules<com.mojang.brigadier.StringReader> parsingRules, class_10842<com.mojang.brigadier.StringReader, T> class_10842) -
Method Summary
Modifier 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 suggestionsBuilder) parse(com.mojang.brigadier.StringReader stringReader) ParsingRules<com.mojang.brigadier.StringReader> rules()Returns the value of therulesrecord component.startParsing(ParsingState<com.mojang.brigadier.StringReader> state) class_10842<com.mojang.brigadier.StringReader, T> top()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.class_10846
method_68239, method_68240
-
Field Details
-
Constructor Details
-
ArgumentParser
public ArgumentParser(ParsingRules<com.mojang.brigadier.StringReader> parsingRules, class_10842<com.mojang.brigadier.StringReader, T> class_10842)
-
-
Method Details
-
startParsing
- Mappings:
Namespace Name Mixin selector named startParsingLnet/minecraft/command/argument/packrat/ArgumentParser;startParsing(Lnet/minecraft/command/argument/packrat/ParsingState;)Ljava/util/Optional;intermediary method_58340Lnet/minecraft/class_9408;method_58340(Lnet/minecraft/class_9393;)Ljava/util/Optional;official aLbqf;a(Lbpz;)Ljava/util/Optional;
-
parse
public T parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfaceclass_10846<T>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/class_10846;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;intermediary method_58341Lnet/minecraft/class_10846;method_58341(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;official aLbqe;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
-
listSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) - Specified by:
listSuggestionsin interfaceclass_10846<T>- Mappings:
Namespace Name Mixin selector named listSuggestionsLnet/minecraft/class_10846;listSuggestions(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary method_58342Lnet/minecraft/class_10846;method_58342(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;official aLbqe;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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). -
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
top
Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-