Class ColorCache
java.lang.Object
net.minecraft.client.renderer.color.ColorCache
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<int[]>
private final ThreadLocal<ColorCache.Entry>
private final ReentrantReadWriteLock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int[]
findOrCreateChunkCache
(int p_228073_1_, int p_228073_2_) int
getColor
(BlockPos p_228071_1_, IntSupplier p_228071_2_) void
void
invalidateForChunk
(int p_228070_1_, int p_228070_2_)
-
Field Details
-
latestChunkOnThread
-
cache
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<int[]> cache -
lock
-
-
Constructor Details
-
ColorCache
public ColorCache()
-
-
Method Details
-
getColor
-
invalidateForChunk
public void invalidateForChunk(int p_228070_1_, int p_228070_2_) -
invalidateAll
public void invalidateAll() -
findOrCreateChunkCache
private int[] findOrCreateChunkCache(int p_228073_1_, int p_228073_2_)
-