Package net.minecraft.client.world
Class BiomeColorCache
java.lang.Object
net.minecraft.client.world.BiomeColorCache
@Environment(CLIENT) public class BiomeColorCache extends Object
- Mappings:
Namespace Name official dra
intermediary net/minecraft/class_4700
named net/minecraft/client/world/BiomeColorCache
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BiomeColorCache.Last
-
Field Summary
Fields Modifier and Type Field Description private Long2ObjectLinkedOpenHashMap<int[]>
colors
private ThreadLocal<BiomeColorCache.Last>
last
private ReentrantReadWriteLock
lock
-
Constructor Summary
Constructors Constructor Description BiomeColorCache()
-
Method Summary
Modifier and Type Method Description int
getBiomeColor(BlockPos pos, IntSupplier colorFactory)
private int[]
getColorArray(int chunkX, int chunkZ)
void
reset()
void
reset(int chunkX, int chunkZ)
-
Field Details
-
last
- Mappings:
Namespace Name Mixin selector official a
Ldra;a:Ljava/lang/ThreadLocal;
intermediary field_21519
Lnet/minecraft/class_4700;field_21519:Ljava/lang/ThreadLocal;
named last
Lnet/minecraft/client/world/BiomeColorCache;last:Ljava/lang/ThreadLocal;
-
colors
- Mappings:
Namespace Name Mixin selector official b
Ldra;b:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
intermediary field_21520
Lnet/minecraft/class_4700;field_21520:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
named colors
Lnet/minecraft/client/world/BiomeColorCache;colors:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
lock
- Mappings:
Namespace Name Mixin selector official c
Ldra;c:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
intermediary field_21521
Lnet/minecraft/class_4700;field_21521:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
named lock
Lnet/minecraft/client/world/BiomeColorCache;lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
-
-
Constructor Details
-
BiomeColorCache
public BiomeColorCache()
-
-
Method Details
-
getBiomeColor
- Mappings:
Namespace Name Mixin selector official a
Ldra;a(Lfx;Ljava/util/function/IntSupplier;)I
intermediary method_23770
Lnet/minecraft/class_4700;method_23770(Lnet/minecraft/class_2338;Ljava/util/function/IntSupplier;)I
named getBiomeColor
Lnet/minecraft/client/world/BiomeColorCache;getBiomeColor(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/IntSupplier;)I
-
reset
public void reset(int chunkX, int chunkZ)- Mappings:
Namespace Name Mixin selector official a
Ldra;a(II)V
intermediary method_23769
Lnet/minecraft/class_4700;method_23769(II)V
named reset
Lnet/minecraft/client/world/BiomeColorCache;reset(II)V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official a
Ldra;a()V
intermediary method_23768
Lnet/minecraft/class_4700;method_23768()V
named reset
Lnet/minecraft/client/world/BiomeColorCache;reset()V
-
getColorArray
private int[] getColorArray(int chunkX, int chunkZ)- Mappings:
Namespace Name Mixin selector official b
Ldra;b(II)[I
intermediary method_23772
Lnet/minecraft/class_4700;method_23772(II)[I
named getColorArray
Lnet/minecraft/client/world/BiomeColorCache;getColorArray(II)[I
-