Class SectionMeshCache
java.lang.Object
net.lugo.overlaylib.SectionMeshCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()get(net.minecraft.core.SectionPos pos, long frameToken) booleanisCurrent(net.minecraft.core.SectionPos pos, long dataVersion, long frameToken) voidremove(net.minecraft.core.SectionPos pos) voidstore(net.minecraft.core.SectionPos pos, long dataVersion, long frameToken, com.mojang.blaze3d.vertex.MeshData built)
-
Field Details
-
EMPTY_MESH
-
-
Constructor Details
-
SectionMeshCache
public SectionMeshCache() -
SectionMeshCache
public SectionMeshCache(int maxCacheSize)
-
-
Method Details
-
isCurrent
public boolean isCurrent(net.minecraft.core.SectionPos pos, long dataVersion, long frameToken) -
store
public void store(net.minecraft.core.SectionPos pos, long dataVersion, long frameToken, com.mojang.blaze3d.vertex.MeshData built) -
get
-
remove
public void remove(net.minecraft.core.SectionPos pos) -
clearAll
public void clearAll()
-