Record Class ParseError<S>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.packrat.ParseError<S>
- Record Components:
cursor
-suggestions
-reason
-
- 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 Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thecursor
record component.private final Object
The field for thereason
record component.private final Suggestable
<S> The field for thesuggestions
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
cursor()
Returns the value of thecursor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.reason()
Returns the value of thereason
record component.Returns the value of thesuggestions
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
cursor
private final int cursorThe field for thecursor
record component. -
suggestions
The field for thesuggestions
record component. -
reason
The field for thereason
record component.
-
-
Constructor Details
-
ParseError
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
cursor
public int cursor()Returns the value of thecursor
record component.- Returns:
- the value of the
cursor
record component
-
suggestions
Returns the value of thesuggestions
record component.- Returns:
- the value of the
suggestions
record component
-
reason
Returns the value of thereason
record component.- Returns:
- the value of the
reason
record component
-