Class ChunkNoiseSampler.CacheOnce

java.lang.Object
net.minecraft.world.gen.chunk.ChunkNoiseSampler.CacheOnce
All Implemented Interfaces:
ChunkNoiseSampler.ParentedNoiseType, DensityFunction, DensityFunctionTypes.Wrapper
Enclosing class:
ChunkNoiseSampler

private class ChunkNoiseSampler.CacheOnce extends Object implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
Mappings:
Namespace Name
named net/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce
intermediary net/minecraft/class_6568$class_6950
official dxz$f
  • Field Details

    • delegate

      private final DensityFunction delegate
      Mappings:
      Namespace Name Mixin selector
      named delegate Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
      intermediary field_36606 Lnet/minecraft/class_6568$class_6950;field_36606:Lnet/minecraft/class_6910;
      official e Ldxz$f;e:Ldxo;
    • sampleUniqueIndex

      private long sampleUniqueIndex
      Mappings:
      Namespace Name Mixin selector
      named sampleUniqueIndex Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;sampleUniqueIndex:J
      intermediary field_36607 Lnet/minecraft/class_6568$class_6950;field_36607:J
      official f Ldxz$f;f:J
    • cacheOnceUniqueIndex

      private long cacheOnceUniqueIndex
      Mappings:
      Namespace Name Mixin selector
      named cacheOnceUniqueIndex Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;cacheOnceUniqueIndex:J
      intermediary field_36608 Lnet/minecraft/class_6568$class_6950;field_36608:J
      official g Ldxz$f;g:J
    • lastSamplingResult

      private double lastSamplingResult
      Mappings:
      Namespace Name Mixin selector
      named lastSamplingResult Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;lastSamplingResult:D
      intermediary field_36609 Lnet/minecraft/class_6568$class_6950;field_36609:D
      official h Ldxz$f;h:D
    • cache

      @Nullable private @org.jetbrains.annotations.Nullable double[] cache
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;cache:[D
      intermediary field_36610 Lnet/minecraft/class_6568$class_6950;field_36610:[D
      official i Ldxz$f;i:[D
  • Constructor Details

    • CacheOnce

      CacheOnce(DensityFunction delegate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$CacheOnce;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)V
      intermediary <init> Lnet/minecraft/class_6568$class_6950;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;)V
      official <init> Ldxz$f;<init>(Ldxz;Ldxo;)V
  • Method Details

    • sample

      public double sample(DensityFunction.NoisePos pos)
      Returns the density value for the given block position.
      Specified by:
      sample in interface DensityFunction
      Parameters:
      pos - the block position
      Returns:
      the density value for the given block position
      Mappings:
      Namespace Name Mixin selector
      named sample Lnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D
      intermediary method_40464 Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D
      official a Ldxo;a(Ldxo$b;)D
    • fill

      public void fill(double[] densities, DensityFunction.EachApplier applier)
      Fills an array of densities using this density function and the DensityFunction.EachApplier.
      Specified by:
      fill in interface DensityFunction
      Parameters:
      densities - the array of densities to fill, like a buffer or a cache
      applier - the EachApplier to use. It has a method for filling the array, as well as to get a block position for an index
      Mappings:
      Namespace Name Mixin selector
      named fill Lnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V
      intermediary method_40470 Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)V
      official a Ldxo;a([DLdxo$a;)V
    • wrapped

      public DensityFunction wrapped()
      Specified by:
      wrapped in interface ChunkNoiseSampler.ParentedNoiseType
      Specified by:
      wrapped in interface DensityFunctionTypes.Wrapper
      Mappings:
      Namespace Name Mixin selector
      named wrapped Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;wrapped()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
      intermediary comp_469 Lnet/minecraft/class_6916$class_7052;comp_469()Lnet/minecraft/class_6910;
      official k Ldxp$m;k()Ldxo;
    • type

      public net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Wrapping.Type type()
      Specified by:
      type in interface DensityFunctionTypes.Wrapper
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapper;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Wrapping$Type;
      intermediary comp_383 Lnet/minecraft/class_6916$class_7052;comp_383()Lnet/minecraft/class_6916$class_6927$class_6928;
      official j Ldxp$m;j()Ldxp$l$a;