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
  • Field Details

    • last

      private final ThreadLocal<BiomeColorCache.Last> 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

      private final Long2ObjectLinkedOpenHashMap<int[]> 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

      private final ReentrantReadWriteLock 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

      public int getBiomeColor​(BlockPos pos, IntSupplier colorFactory)
      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