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 dfh
intermediary net/minecraft/class_3631
named net/minecraft/world/biome/layer/util/CachingLayerContext
  • Field Details

    • field_31730

      private static final int field_31730
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Ldfh;a:I
      intermediary field_31730 Lnet/minecraft/class_3631;field_31730:I
      named field_31730 Lnet/minecraft/world/biome/layer/util/CachingLayerContext;field_31730:I
    • cache

      private final Long2IntLinkedOpenHashMap cache
      Mappings:
      Namespace Name Mixin selector
      official b Ldfh;b: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 c Ldfh;c: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 d Ldfh;d:Lddt;
      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 e Ldfh;e: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 f Ldfh;f: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> Ldfh;<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 Ldfh;b(Ldgr;)Ldfd;
      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 Ldfh;a(Ldgr;Ldfd;)Ldfd;
      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 Ldfh;a(Ldgr;Ldfd;Ldfd;)Ldfd;
      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 Ldff;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 Ldfg;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 Ldfg;a()Lddt;
      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 Ldfh;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