Record Class CachedOverlayManager.CacheSectionPosEntry
java.lang.Object
java.lang.Record
net.lugo.overlaylib.managers.CachedOverlayManager.CacheSectionPosEntry
- Enclosing class:
CachedOverlayManager
public static record CachedOverlayManager.CacheSectionPosEntry(net.minecraft.core.SectionPos pos, OverlayRendererBlockData[] blocks, long lastAccessTime)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCacheSectionPosEntry(net.minecraft.core.SectionPos pos, OverlayRendererBlockData[] blocks, long lastAccessTime) Creates an instance of aCacheSectionPosEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastAccessTimerecord component.net.minecraft.core.SectionPospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CacheSectionPosEntry
public CacheSectionPosEntry(net.minecraft.core.SectionPos pos, OverlayRendererBlockData[] blocks, long lastAccessTime) Creates an instance of aCacheSectionPosEntryrecord class.- Parameters:
pos- the value for theposrecord componentblocks- the value for theblocksrecord componentlastAccessTime- the value for thelastAccessTimerecord 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
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
lastAccessTime
public long lastAccessTime()Returns the value of thelastAccessTimerecord component.- Returns:
- the value of the
lastAccessTimerecord component
-