Class CachedOverlayManager
java.lang.Object
net.lugo.overlaylib.managers.CachedOverlayManager
- All Implemented Interfaces:
OverlayManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCachedOverlayManager(Function<net.minecraft.core.BlockPos, OverlayRendererBlockData> computeFunction) CachedOverlayManager(Function<net.minecraft.core.BlockPos, OverlayRendererBlockData> computeFunction, int maxCacheSize, int maxComputationsPerTick) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclear(net.minecraft.core.BlockPos blockPos) booleanclear(net.minecraft.core.SectionPos sectionPos) voidclearAll()getSectionBlocks(int sectionX, int sectionY, int sectionZ) getSectionBlocks(net.minecraft.core.SectionPos sectionPos) voidprepareSection(net.minecraft.core.SectionPos sectionPos) voidvoidrefresh(net.minecraft.core.BlockPos blockPos) voidrefresh(net.minecraft.core.SectionPos sectionPos) voidvoidremoveOldEntries(int targetSize) voidsetActive(boolean active) voidsetChunkScanRadius(int radius) voidsetChunkScanRadiusVertical(int radius) voidsetMaxComputationsPerTick(int maxComputationsPerTick) voidupdateMaxCacheSize(int newMaxCacheSize)
-
Constructor Details
-
CachedOverlayManager
public CachedOverlayManager(Function<net.minecraft.core.BlockPos, OverlayRendererBlockData> computeFunction) -
CachedOverlayManager
public CachedOverlayManager(Function<net.minecraft.core.BlockPos, OverlayRendererBlockData> computeFunction, int maxCacheSize, int maxComputationsPerTick)
-
-
Method Details
-
prepareSection
public void prepareSection(net.minecraft.core.SectionPos sectionPos) - Specified by:
prepareSectionin interfaceOverlayManager
-
getSectionBlocks
- Specified by:
getSectionBlocksin interfaceOverlayManager
-
getSectionBlocks
- Specified by:
getSectionBlocksin interfaceOverlayManager
-
processQueue
public void processQueue() -
setActive
public void setActive(boolean active) - Specified by:
setActivein interfaceOverlayManager
-
setChunkScanRadius
public void setChunkScanRadius(int radius) - Specified by:
setChunkScanRadiusin interfaceOverlayManager
-
setChunkScanRadiusVertical
public void setChunkScanRadiusVertical(int radius) - Specified by:
setChunkScanRadiusVerticalin interfaceOverlayManager
-
setMaxComputationsPerTick
public void setMaxComputationsPerTick(int maxComputationsPerTick) -
updateMaxCacheSize
public void updateMaxCacheSize(int newMaxCacheSize) -
removeOldEntries
public void removeOldEntries() -
removeOldEntries
public void removeOldEntries(int targetSize) -
clear
public boolean clear(net.minecraft.core.SectionPos sectionPos) -
refresh
public void refresh(net.minecraft.core.SectionPos sectionPos) -
clear
public boolean clear(net.minecraft.core.BlockPos blockPos) -
refresh
public void refresh(net.minecraft.core.BlockPos blockPos) -
clearAll
public void clearAll()
-