Record Class ParseError<S>

java.lang.Object
java.lang.Record
net.minecraft.command.argument.packrat.ParseError<S>
Record Components:
cursor -
suggestions -
reason -

public record ParseError<S>(int cursor, Suggestable<S> suggestions, Object reason) extends Record
Mappings:
Namespace Name
named net/minecraft/command/argument/packrat/ParseError
intermediary net/minecraft/class_9392
official bmn
named cursor
intermediary comp_2469
official a
named suggestions
intermediary comp_2470
official b
named reason
intermediary comp_2471
official c
  • Field Details

    • cursor

      private final int cursor
      The field for the cursor record component.
    • suggestions

      private final Suggestable<S> suggestions
      The field for the suggestions record component.
    • reason

      private final Object reason
      The field for the reason record component.
  • Constructor Details

  • Method Details

    • 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.
    • cursor

      public int cursor()
      Returns the value of the cursor record component.
      Returns:
      the value of the cursor record component
    • suggestions

      public Suggestable<S> suggestions()
      Returns the value of the suggestions record component.
      Returns:
      the value of the suggestions record component
    • reason

      public Object reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component