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 - bnx- named - cursor- intermediary - comp_2469- official - a- named - suggestions- intermediary - comp_2470- official - b- named - reason- intermediary - comp_2471- official - c
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
cursorprivate final int cursorThe field for thecursorrecord component.
- 
suggestionsThe field for thesuggestionsrecord component.
- 
reasonThe field for thereasonrecord component.
 
- 
- 
Constructor Details- 
ParseError
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
cursorpublic int cursor()Returns the value of thecursorrecord component.- Returns:
- the value of the cursorrecord component
 
- 
suggestionsReturns the value of thesuggestionsrecord component.- Returns:
- the value of the suggestionsrecord component
 
- 
reasonReturns the value of thereasonrecord component.- Returns:
- the value of the reasonrecord component
 
 
-