Package net.minecraft.client.world
Class BiomeColorCache
java.lang.Object
net.minecraft.client.world.BiomeColorCache
- Mappings:
Namespace Name official dwfintermediary net/minecraft/class_4700named net/minecraft/client/world/BiomeColorCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Long2ObjectLinkedOpenHashMap<int[]>private static intprivate ThreadLocal<BiomeColorCache.Last>private ReentrantReadWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBiomeColor(BlockPos pos, IntSupplier colorFactory)private int[]getColorArray(int chunkX, int chunkZ)voidreset()voidreset(int chunkX, int chunkZ)
-
Field Details
-
field_32164
private static final int field_32164- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLdwf;a:Iintermediary field_32164Lnet/minecraft/class_4700;field_32164:Inamed field_32164Lnet/minecraft/client/world/BiomeColorCache;field_32164:I
-
last
- Mappings:
Namespace Name Mixin selector official bLdwf;b:Ljava/lang/ThreadLocal;intermediary field_21519Lnet/minecraft/class_4700;field_21519:Ljava/lang/ThreadLocal;named lastLnet/minecraft/client/world/BiomeColorCache;last:Ljava/lang/ThreadLocal;
-
colors
- Mappings:
Namespace Name Mixin selector official cLdwf;c:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_21520Lnet/minecraft/class_4700;field_21520:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;named colorsLnet/minecraft/client/world/BiomeColorCache;colors:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
lock
- Mappings:
Namespace Name Mixin selector official dLdwf;d:Ljava/util/concurrent/locks/ReentrantReadWriteLock;intermediary field_21521Lnet/minecraft/class_4700;field_21521:Ljava/util/concurrent/locks/ReentrantReadWriteLock;named lockLnet/minecraft/client/world/BiomeColorCache;lock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
-
-
Constructor Details
-
BiomeColorCache
public BiomeColorCache()
-
-
Method Details
-
getBiomeColor
- Mappings:
Namespace Name Mixin selector official aLdwf;a(Lgg;Ljava/util/function/IntSupplier;)Iintermediary method_23770Lnet/minecraft/class_4700;method_23770(Lnet/minecraft/class_2338;Ljava/util/function/IntSupplier;)Inamed getBiomeColorLnet/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 aLdwf;a(II)Vintermediary method_23769Lnet/minecraft/class_4700;method_23769(II)Vnamed resetLnet/minecraft/client/world/BiomeColorCache;reset(II)V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official aLdwf;a()Vintermediary method_23768Lnet/minecraft/class_4700;method_23768()Vnamed resetLnet/minecraft/client/world/BiomeColorCache;reset()V
-
getColorArray
private int[] getColorArray(int chunkX, int chunkZ)- Mappings:
Namespace Name Mixin selector official bLdwf;b(II)[Iintermediary method_23772Lnet/minecraft/class_4700;method_23772(II)[Inamed getColorArrayLnet/minecraft/client/world/BiomeColorCache;getColorArray(II)[I
-