Package net.minecraft.client.color.block
Class BlockTintCache
java.lang.Object
net.minecraft.client.color.block.BlockTintCache
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<BlockTintCache.CacheData>
private final ThreadLocal<BlockTintCache.LatestCacheInfo>
private final ReentrantReadWriteLock
private static final int
private final ToIntFunction<BlockPos>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate BlockTintCache.CacheData
findOrCreateChunkCache
(int p_193815_, int p_193816_) int
void
void
invalidateForChunk
(int p_92656_, int p_92657_)
-
Field Details
-
MAX_CACHE_ENTRIES
private static final int MAX_CACHE_ENTRIES- See Also:
-
latestChunkOnThread
-
cache
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<BlockTintCache.CacheData> cache -
lock
-
source
-
-
Constructor Details
-
BlockTintCache
-
-
Method Details
-
getColor
-
invalidateForChunk
public void invalidateForChunk(int p_92656_, int p_92657_) -
invalidateAll
public void invalidateAll() -
findOrCreateChunkCache
-