Class CachingLayerContext

java.lang.Object
net.minecraft.world.biome.layer.util.CachingLayerContext
All Implemented Interfaces:
LayerRandomnessSource, LayerSampleContext<CachingLayerSampler>

public class CachingLayerContext
extends Object
implements LayerSampleContext<CachingLayerSampler>
Mappings:
Namespace Name
official dba
intermediary net/minecraft/class_3631
named net/minecraft/world/biome/layer/util/CachingLayerContext
  • Field Details

    • cache

      private final Long2IntLinkedOpenHashMap cache
      Mappings:
      Namespace Name Mixin selector
      official a Ldba;a:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
      intermediary field_16045 Lnet/minecraft/class_3631;field_16045:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
      named cache Lnet/minecraft/world/biome/layer/util/CachingLayerContext;cache:Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
    • cacheCapacity

      private final int cacheCapacity
      Mappings:
      Namespace Name Mixin selector
      official b Ldba;b:I
      intermediary field_16044 Lnet/minecraft/class_3631;field_16044:I
      named cacheCapacity Lnet/minecraft/world/biome/layer/util/CachingLayerContext;cacheCapacity:I
    • noiseSampler

      private final PerlinNoiseSampler noiseSampler
      Mappings:
      Namespace Name Mixin selector
      official c Ldba;c:Lczn;
      intermediary field_16732 Lnet/minecraft/class_3631;field_16732:Lnet/minecraft/class_3756;
      named noiseSampler Lnet/minecraft/world/biome/layer/util/CachingLayerContext;noiseSampler:Lnet/minecraft/util/math/noise/PerlinNoiseSampler;
    • worldSeed

      private final long worldSeed
      Mappings:
      Namespace Name Mixin selector
      official d Ldba;d:J
      intermediary field_16730 Lnet/minecraft/class_3631;field_16730:J
      named worldSeed Lnet/minecraft/world/biome/layer/util/CachingLayerContext;worldSeed:J
    • localSeed

      private long localSeed
      Mappings:
      Namespace Name Mixin selector
      official e Ldba;e:J
      intermediary field_16729 Lnet/minecraft/class_3631;field_16729:J
      named localSeed Lnet/minecraft/world/biome/layer/util/CachingLayerContext;localSeed:J
  • Constructor Details

    • CachingLayerContext

      public CachingLayerContext​(int cacheCapacity, long seed, long salt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldba;<init>(IJJ)V
      intermediary <init> Lnet/minecraft/class_3631;<init>(IJJ)V
      named <init> Lnet/minecraft/world/biome/layer/util/CachingLayerContext;<init>(IJJ)V
  • Method Details

    • createSampler

      public CachingLayerSampler createSampler​(LayerOperator layerOperator)
      Specified by:
      createSampler in interface LayerSampleContext<CachingLayerSampler>
      Mappings:
      Namespace Name Mixin selector
      official b Ldba;b(Ldck;)Ldaw;
      intermediary method_15837 Lnet/minecraft/class_3631;method_15837(Lnet/minecraft/class_4;)Lnet/minecraft/class_3626;
      named createSampler Lnet/minecraft/world/biome/layer/util/CachingLayerContext;createSampler(Lnet/minecraft/world/biome/layer/util/LayerOperator;)Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;
    • createSampler

      public CachingLayerSampler createSampler​(LayerOperator layerOperator, CachingLayerSampler cachingLayerSampler)
      Specified by:
      createSampler in interface LayerSampleContext<CachingLayerSampler>
      Mappings:
      Namespace Name Mixin selector
      official a Ldba;a(Ldck;Ldaw;)Ldaw;
      intermediary method_15838 Lnet/minecraft/class_3631;method_15838(Lnet/minecraft/class_4;Lnet/minecraft/class_3626;)Lnet/minecraft/class_3626;
      named createSampler Lnet/minecraft/world/biome/layer/util/CachingLayerContext;createSampler(Lnet/minecraft/world/biome/layer/util/LayerOperator;Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;)Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;
    • createSampler

      public CachingLayerSampler createSampler​(LayerOperator layerOperator, CachingLayerSampler cachingLayerSampler, CachingLayerSampler cachingLayerSampler2)
      Specified by:
      createSampler in interface LayerSampleContext<CachingLayerSampler>
      Mappings:
      Namespace Name Mixin selector
      official a Ldba;a(Ldck;Ldaw;Ldaw;)Ldaw;
      intermediary method_15836 Lnet/minecraft/class_3631;method_15836(Lnet/minecraft/class_4;Lnet/minecraft/class_3626;Lnet/minecraft/class_3626;)Lnet/minecraft/class_3626;
      named createSampler Lnet/minecraft/world/biome/layer/util/CachingLayerContext;createSampler(Lnet/minecraft/world/biome/layer/util/LayerOperator;Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;)Lnet/minecraft/world/biome/layer/util/CachingLayerSampler;
    • initSeed

      public void initSeed​(long x, long y)
      Specified by:
      initSeed in interface LayerSampleContext<CachingLayerSampler>
      Mappings:
      Namespace Name Mixin selector
      official a Lday;a(JJ)V
      intermediary method_15830 Lnet/minecraft/class_3628;method_15830(JJ)V
      named initSeed Lnet/minecraft/world/biome/layer/util/LayerSampleContext;initSeed(JJ)V
    • nextInt

      public int nextInt​(int bound)
      Specified by:
      nextInt in interface LayerRandomnessSource
      Mappings:
      Namespace Name Mixin selector
      official a Ldaz;a(I)I
      intermediary method_15834 Lnet/minecraft/class_3630;method_15834(I)I
      named nextInt Lnet/minecraft/world/biome/layer/util/LayerRandomnessSource;nextInt(I)I
    • getNoiseSampler

      public PerlinNoiseSampler getNoiseSampler()
      Specified by:
      getNoiseSampler in interface LayerRandomnessSource
      Mappings:
      Namespace Name Mixin selector
      official a Ldaz;a()Lczn;
      intermediary method_15835 Lnet/minecraft/class_3630;method_15835()Lnet/minecraft/class_3756;
      named getNoiseSampler Lnet/minecraft/world/biome/layer/util/LayerRandomnessSource;getNoiseSampler()Lnet/minecraft/util/math/noise/PerlinNoiseSampler;
    • addSalt

      private static long addSalt​(long seed, long salt)
      Mappings:
      Namespace Name Mixin selector
      official b Ldba;b(JJ)J
      intermediary method_22417 Lnet/minecraft/class_3631;method_22417(JJ)J
      named addSalt Lnet/minecraft/world/biome/layer/util/CachingLayerContext;addSalt(JJ)J