Record Class SectionMeshCache.CacheKey
java.lang.Object
java.lang.Record
net.lugo.overlaylib.SectionMeshCache.CacheKey
- Enclosing class:
SectionMeshCache
public static record SectionMeshCache.CacheKey(net.minecraft.core.SectionPos pos, long frameToken)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCacheKey(net.minecraft.core.SectionPos pos, long frameToken) Creates an instance of aCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theframeTokenrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.core.SectionPospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CacheKey
public CacheKey(net.minecraft.core.SectionPos pos, long frameToken) Creates an instance of aCacheKeyrecord class.- Parameters:
pos- the value for theposrecord componentframeToken- the value for theframeTokenrecord component
-
-
Method Details
-
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. -
pos
public net.minecraft.core.SectionPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
frameToken
public long frameToken()Returns the value of theframeTokenrecord component.- Returns:
- the value of the
frameTokenrecord component
-