Class CachingLayerSampler

java.lang.Object
net.minecraft.world.biome.layer.util.CachingLayerSampler
All Implemented Interfaces:
LayerSampler

public final class CachingLayerSampler
extends Object
implements LayerSampler
Mappings:
Namespace Name
official daw
intermediary net/minecraft/class_3626
named net/minecraft/world/biome/layer/util/CachingLayerSampler
  • Field Details

    • operator

      private final LayerOperator operator
      Mappings:
      Namespace Name Mixin selector
      official a Ldaw;a:Ldck;
      intermediary field_16035 Lnet/minecraft/class_3626;field_16035:Lnet/minecraft/class_4;
      named operator Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;operator:Lnet/minecraft/world/biome/layer/util/LayerOperator;
    • cache

      private final Long2IntLinkedOpenHashMap cache
      Mappings:
      Namespace Name Mixin selector
      official b Ldaw;b:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
      intermediary field_16038 Lnet/minecraft/class_3626;field_16038:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
      named cache Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;cache:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
    • cacheCapacity

      private final int cacheCapacity
      Mappings:
      Namespace Name Mixin selector
      official c Ldaw;c:I
      intermediary field_16036 Lnet/minecraft/class_3626;field_16036:I
      named cacheCapacity Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;cacheCapacity:I
  • Constructor Details

    • CachingLayerSampler

      public CachingLayerSampler​(Long2IntLinkedOpenHashMap cache, int cacheCapacity, LayerOperator operator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldaw;<init>(Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;ILdck;)V
      intermediary <init> Lnet/minecraft/class_3626;<init>(Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;ILnet/minecraft/class_4;)V
      named <init> Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;<init>(Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;ILnet/minecraft/world/biome/layer/util/LayerOperator;)V
  • Method Details

    • sample

      public int sample​(int x, int z)
      Specified by:
      sample in interface LayerSampler
      Mappings:
      Namespace Name Mixin selector
      official a Ldau;a(II)I
      intermediary method_15825 Lnet/minecraft/class_3625;method_15825(II)I
      named sample Lnet/minecraft/world/biome/layer/util/LayerSampler;sample(II)I
    • getCapacity

      public int getCapacity()
      Mappings:
      Namespace Name Mixin selector
      official a Ldaw;a()I
      intermediary method_15827 Lnet/minecraft/class_3626;method_15827()I
      named getCapacity Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;getCapacity()I