Record Class Term.RepeatWithSeparatorTerm<S,T>

java.lang.Object
java.lang.Record
net.minecraft.util.packrat.Term.RepeatWithSeparatorTerm<S,T>
Record Components:
element -
listName -
separator -
minRepetitions -
allowTrailingSeparator -
All Implemented Interfaces:
Term<S>
Enclosing interface:
Term<S>

public static record Term.RepeatWithSeparatorTerm<S,T>(ParsingRuleEntry<S,T> element, Symbol<List<T>> listName, Term<S> separator, int minRepetitions, boolean allowTrailingSeparator) extends Record implements Term<S>
Mappings:
Namespace Name
named net/minecraft/util/packrat/Term$RepeatWithSeparatorTerm
intermediary net/minecraft/class_9402$class_10845
official bsv$f
named element
intermediary comp_3796
official a
named listName
intermediary comp_3797
official b
named separator
intermediary comp_3798
official c
named minRepetitions
intermediary comp_3799
official d
named allowTrailingSeparator
intermediary comp_3800
official e
  • Field Details

    • element

      private final ParsingRuleEntry<S,T> element
      The field for the element record component.
    • listName

      private final Symbol<List<T>> listName
      The field for the listName record component.
    • separator

      private final Term<S> separator
      The field for the separator record component.
    • minRepetitions

      private final int minRepetitions
      The field for the minRepetitions record component.
    • allowTrailingSeparator

      private final boolean allowTrailingSeparator
      The field for the allowTrailingSeparator record component.
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(ParsingState<S> state, ParseResults results, Cut cut)
      Specified by:
      matches in interface Term<S>
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/util/packrat/Term;matches(Lnet/minecraft/util/packrat/ParsingState;Lnet/minecraft/util/packrat/ParseResults;Lnet/minecraft/util/packrat/Cut;)Z
      intermediary method_58334 Lnet/minecraft/class_9402;method_58334(Lnet/minecraft/class_9393;Lnet/minecraft/class_9400;Lnet/minecraft/class_9388;)Z
      official a Lbsv;a(Lbsr;Lbst;Lbsl;)Z
    • toString

      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

      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

      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • element

      public ParsingRuleEntry<S,T> element()
      Returns the value of the element record component.
      Returns:
      the value of the element record component
    • listName

      public Symbol<List<T>> listName()
      Returns the value of the listName record component.
      Returns:
      the value of the listName record component
    • separator

      public Term<S> separator()
      Returns the value of the separator record component.
      Returns:
      the value of the separator record component
    • minRepetitions

      public int minRepetitions()
      Returns the value of the minRepetitions record component.
      Returns:
      the value of the minRepetitions record component
    • allowTrailingSeparator

      public boolean allowTrailingSeparator()
      Returns the value of the allowTrailingSeparator record component.
      Returns:
      the value of the allowTrailingSeparator record component