Package net.minecraft.client.world
Class BiomeColorCache
java.lang.Object
net.minecraft.client.world.BiomeColorCache
@Environment(CLIENT) public class BiomeColorCache extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classBiomeColorCache.Last -
Field Summary
Fields Modifier and Type Field Description private Long2ObjectLinkedOpenHashMap<int[]>colorsprivate ThreadLocal<BiomeColorCache.Last>lastprivate ReentrantReadWriteLocklock -
Constructor Summary
Constructors Constructor Description BiomeColorCache() -
Method Summary
Modifier and Type Method Description intgetBiomeColor(BlockPos pos, IntSupplier colorFactory)private int[]getColorArray(int chunkX, int chunkZ)voidreset()voidreset(int chunkX, int chunkZ)
-
Field Details
-
last
-
colors
-
lock
-
-
Constructor Details
-
BiomeColorCache
public BiomeColorCache()
-
-
Method Details
-
getBiomeColor
-
reset
public void reset(int chunkX, int chunkZ) -
reset
public void reset() -
getColorArray
private int[] getColorArray(int chunkX, int chunkZ)
-