Record Class CachedParseState.CacheEntry<T>
java.lang.Object
java.lang.Record
net.minecraft.util.parsing.packrat.CachedParseState.CacheEntry<T>
- Enclosing class:
CachedParseState<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for themarkAfterParserecord component.static final CachedParseState.CacheEntry<?> The field for thevaluerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCacheEntry(@Nullable T value, int markAfterParse) Creates an instance of aCacheEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themarkAfterParserecord component.static <T> CachedParseState.CacheEntry<T> final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
-
markAfterParse
private final int markAfterParseThe field for themarkAfterParserecord component. -
NEGATIVE
-
-
Constructor Details
-
CacheEntry
-
-
Method Details
-
negativeEntry
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
value
-
markAfterParse
public int markAfterParse()Returns the value of themarkAfterParserecord component.- Returns:
- the value of the
markAfterParserecord component
-