Class BiomeColorCache

java.lang.Object
net.minecraft.client.world.BiomeColorCache

@Environment(CLIENT) public class BiomeColorCache extends Object
Mappings:
Namespace Name
official eop
intermediary net/minecraft/class_4700
named net/minecraft/client/world/BiomeColorCache
  • Field Details

    • MAX_ENTRY_SIZE

      private static final int MAX_ENTRY_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leop;a:I
      intermediary field_32164 Lnet/minecraft/class_4700;field_32164:I
      named MAX_ENTRY_SIZE Lnet/minecraft/client/world/BiomeColorCache;MAX_ENTRY_SIZE:I
    • last

      private final ThreadLocal<BiomeColorCache.Last> last
      Mappings:
      Namespace Name Mixin selector
      official b Leop;b: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 c Leop;c: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 d Leop;d: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;
    • colorFactory

      private final ToIntFunction<BlockPos> colorFactory
      Mappings:
      Namespace Name Mixin selector
      official e Leop;e:Ljava/util/function/ToIntFunction;
      intermediary field_34795 Lnet/minecraft/class_4700;field_34795:Ljava/util/function/ToIntFunction;
      named colorFactory Lnet/minecraft/client/world/BiomeColorCache;colorFactory:Ljava/util/function/ToIntFunction;
  • Constructor Details

    • BiomeColorCache

      public BiomeColorCache(ToIntFunction<BlockPos> colorFactory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leop;<init>(Ljava/util/function/ToIntFunction;)V
      intermediary <init> Lnet/minecraft/class_4700;<init>(Ljava/util/function/ToIntFunction;)V
      named <init> Lnet/minecraft/client/world/BiomeColorCache;<init>(Ljava/util/function/ToIntFunction;)V
  • Method Details

    • getBiomeColor

      public int getBiomeColor(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Leop;a(Lgu;)I
      intermediary method_23770 Lnet/minecraft/class_4700;method_23770(Lnet/minecraft/class_2338;)I
      named getBiomeColor Lnet/minecraft/client/world/BiomeColorCache;getBiomeColor(Lnet/minecraft/util/math/BlockPos;)I
    • reset

      public void reset(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      official a Leop;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 Leop;a()V
      intermediary method_23768 Lnet/minecraft/class_4700;method_23768()V
      named reset Lnet/minecraft/client/world/BiomeColorCache;reset()V
    • getColorArray

      private BiomeColorCache.Colors getColorArray(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      official b Leop;b(II)Leop$a;
      intermediary method_23772 Lnet/minecraft/class_4700;method_23772(II)Lnet/minecraft/class_4700$class_6598;
      named getColorArray Lnet/minecraft/client/world/BiomeColorCache;getColorArray(II)Lnet/minecraft/client/world/BiomeColorCache$Colors;