Class ChunkNoiseSampler.FlatCacheDensityFunction

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

private class ChunkNoiseSampler.FlatCacheDensityFunction extends Object implements DensityFunctionTypes.Wrapper, ChunkNoiseSampler.ParentedNoiseType
Mappings:
Namespace Name
official def$g
intermediary net/minecraft/class_6568$class_6951
named net/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCacheDensityFunction
  • Field Details

    • delegate

      private final DensityFunction delegate
      Mappings:
      Namespace Name Mixin selector
      official e Ldef$g;e:Lddu;
      intermediary field_36612 Lnet/minecraft/class_6568$class_6951;field_36612:Lnet/minecraft/class_6910;
      named delegate Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCacheDensityFunction;delegate:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
    • cache

      final double[][] cache
      Mappings:
      Namespace Name Mixin selector
      official f Ldef$g;f:[[D
      intermediary field_36613 Lnet/minecraft/class_6568$class_6951;field_36613:[[D
      named cache Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCacheDensityFunction;cache:[[D
  • Constructor Details

    • FlatCacheDensityFunction

      FlatCacheDensityFunction(DensityFunction delegate, boolean sample)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldef$g;<init>(Ldef;Lddu;Z)V
      intermediary <init> Lnet/minecraft/class_6568$class_6951;<init>(Lnet/minecraft/class_6568;Lnet/minecraft/class_6910;Z)V
      named <init> Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCacheDensityFunction;<init>(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;Lnet/minecraft/world/gen/densityfunction/DensityFunction;Z)V
  • Method Details

    • sample

      public double sample(DensityFunction.NoisePos pos)
      Specified by:
      sample in interface DensityFunction
      Mappings:
      Namespace Name Mixin selector
      official a Lddu;a(Lddu$b;)D
      intermediary method_40464 Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D
      named sample Lnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D
    • applyEach

      public void applyEach(double[] densities, DensityFunction.EachApplier applier)
      Specified by:
      applyEach in interface DensityFunction
      Mappings:
      Namespace Name Mixin selector
      official a Lddu;a([DLddu$a;)V
      intermediary method_40470 Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)V
      named applyEach Lnet/minecraft/world/gen/densityfunction/DensityFunction;applyEach([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V
    • wrapped

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

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