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/ParseErrorintermediary net/minecraft/class_9392official bmjnamed cursorintermediary comp_2469official anamed suggestionsintermediary comp_2470official bnamed reasonintermediary comp_2471official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecursorrecord component.private final ObjectThe field for thereasonrecord component.private final Suggestable<S> The field for thesuggestionsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of thesuggestionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
cursor
private final int cursorThe field for thecursorrecord component. -
suggestions
The field for thesuggestionsrecord component. -
reason
The field for thereasonrecord 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 thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
suggestions
Returns the value of thesuggestionsrecord component.- Returns:
- the value of the
suggestionsrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-