Record Class PackratParser<T>

java.lang.Object
java.lang.Record
net.minecraft.util.packrat.PackratParser<T>
Record Components:
rules -
top -
All Implemented Interfaces:
Parser<T>

public record PackratParser<T>(ParsingRules<com.mojang.brigadier.StringReader> rules, ParsingRuleEntry<com.mojang.brigadier.StringReader,T> top) extends Record implements Parser<T>
Mappings:
Namespace Name
named net/minecraft/util/packrat/PackratParser
intermediary net/minecraft/class_9408
official bqq
named rules
intermediary comp_2484
official a
named top
intermediary comp_2485
official b
  • Field Details Link icon

    • rules Link icon

      private final ParsingRules<com.mojang.brigadier.StringReader> rules
      The field for the rules record component.
    • top Link icon

      private final ParsingRuleEntry<com.mojang.brigadier.StringReader,T> top
      The field for the top record component.
  • Constructor Details Link icon

    • PackratParser Link icon

      public PackratParser(ParsingRules<com.mojang.brigadier.StringReader> parsingRules, ParsingRuleEntry<com.mojang.brigadier.StringReader,T> parsingRuleEntry)
  • Method Details Link icon

    • startParsing Link icon

      public Optional<T> startParsing(ParsingState<com.mojang.brigadier.StringReader> state)
      Mappings:
      Namespace Name Mixin selector
      named startParsing Lnet/minecraft/util/packrat/PackratParser;startParsing(Lnet/minecraft/util/packrat/ParsingState;)Ljava/util/Optional;
      intermediary method_58340 Lnet/minecraft/class_9408;method_58340(Lnet/minecraft/class_9393;)Ljava/util/Optional;
      official a Lbqq;a(Lbqk;)Ljava/util/Optional;
    • parse Link icon

      public T parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface Parser<T>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/util/packrat/Parser;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
      intermediary method_58341 Lnet/minecraft/class_10846;method_58341(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
      official a Lbqp;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
    • listSuggestions Link icon

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface Parser<T>
      Mappings:
      Namespace Name Mixin selector
      named listSuggestions Lnet/minecraft/util/packrat/Parser;listSuggestions(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_58342 Lnet/minecraft/class_10846;method_58342(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official a Lbqp;a(Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • rules Link icon

      public ParsingRules<com.mojang.brigadier.StringReader> rules()
      Returns the value of the rules record component.
      Returns:
      the value of the rules record component
    • top Link icon

      public ParsingRuleEntry<com.mojang.brigadier.StringReader,T> top()
      Returns the value of the top record component.
      Returns:
      the value of the top record component