Class NoiseColumnSampler

java.lang.Object
net.minecraft.world.gen.NoiseColumnSampler

public class NoiseColumnSampler extends Object
Samples noise values for use in chunk generation.
Mappings:
Namespace Name
official cpx
intermediary net/minecraft/class_5818
named net/minecraft/world/gen/NoiseColumnSampler
  • Field Details

    • field_31470

      private static final int field_31470
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lcpx;a:I
      intermediary field_31470 Lnet/minecraft/class_5818;field_31470:I
      named field_31470 Lnet/minecraft/world/gen/NoiseColumnSampler;field_31470:I
    • BIOME_WEIGHT_TABLE

      private static final float[] BIOME_WEIGHT_TABLE
      Table of weights used to weight faraway biomes less than nearby biomes.
      Mappings:
      Namespace Name Mixin selector
      official b Lcpx;b:[F
      intermediary field_28749 Lnet/minecraft/class_5818;field_28749:[F
      named BIOME_WEIGHT_TABLE Lnet/minecraft/world/gen/NoiseColumnSampler;BIOME_WEIGHT_TABLE:[F
    • biomeSource

      private final BiomeSource biomeSource
      Mappings:
      Namespace Name Mixin selector
      official c Lcpx;c:Lbxr;
      intermediary field_28750 Lnet/minecraft/class_5818;field_28750:Lnet/minecraft/class_1966;
      named biomeSource Lnet/minecraft/world/gen/NoiseColumnSampler;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
    • horizontalNoiseResolution

      private final int horizontalNoiseResolution
      Mappings:
      Namespace Name Mixin selector
      official d Lcpx;d:I
      intermediary field_28751 Lnet/minecraft/class_5818;field_28751:I
      named horizontalNoiseResolution Lnet/minecraft/world/gen/NoiseColumnSampler;horizontalNoiseResolution:I
    • verticalNoiseResolution

      private final int verticalNoiseResolution
      Mappings:
      Namespace Name Mixin selector
      official e Lcpx;e:I
      intermediary field_28752 Lnet/minecraft/class_5818;field_28752:I
      named verticalNoiseResolution Lnet/minecraft/world/gen/NoiseColumnSampler;verticalNoiseResolution:I
    • noiseSizeY

      private final int noiseSizeY
      Mappings:
      Namespace Name Mixin selector
      official f Lcpx;f:I
      intermediary field_28753 Lnet/minecraft/class_5818;field_28753:I
      named noiseSizeY Lnet/minecraft/world/gen/NoiseColumnSampler;noiseSizeY:I
    • config

      private final GenerationShapeConfig config
      Mappings:
      Namespace Name Mixin selector
      official g Lcpx;g:Lcpz;
      intermediary field_28754 Lnet/minecraft/class_5818;field_28754:Lnet/minecraft/class_5309;
      named config Lnet/minecraft/world/gen/NoiseColumnSampler;config:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
    • noise

      private final InterpolatedNoiseSampler noise
      Mappings:
      Namespace Name Mixin selector
      official h Lcpx;h:Ldds;
      intermediary field_28755 Lnet/minecraft/class_5818;field_28755:Lnet/minecraft/class_5822;
      named noise Lnet/minecraft/world/gen/NoiseColumnSampler;noise:Lnet/minecraft/util/math/noise/InterpolatedNoiseSampler;
    • islandNoise

      @Nullable private final @Nullable SimplexNoiseSampler islandNoise
      Mappings:
      Namespace Name Mixin selector
      official i Lcpx;i:Lddy;
      intermediary field_28756 Lnet/minecraft/class_5818;field_28756:Lnet/minecraft/class_3541;
      named islandNoise Lnet/minecraft/world/gen/NoiseColumnSampler;islandNoise:Lnet/minecraft/util/math/noise/SimplexNoiseSampler;
    • densityNoise

      private final OctavePerlinNoiseSampler densityNoise
      Mappings:
      Namespace Name Mixin selector
      official j Lcpx;j:Lddw;
      intermediary field_28757 Lnet/minecraft/class_5818;field_28757:Lnet/minecraft/class_3537;
      named densityNoise Lnet/minecraft/world/gen/NoiseColumnSampler;densityNoise:Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
    • topSlideTarget

      private final double topSlideTarget
      Mappings:
      Namespace Name Mixin selector
      official k Lcpx;k:D
      intermediary field_28758 Lnet/minecraft/class_5818;field_28758:D
      named topSlideTarget Lnet/minecraft/world/gen/NoiseColumnSampler;topSlideTarget:D
    • topSlideSize

      private final double topSlideSize
      Mappings:
      Namespace Name Mixin selector
      official l Lcpx;l:D
      intermediary field_28759 Lnet/minecraft/class_5818;field_28759:D
      named topSlideSize Lnet/minecraft/world/gen/NoiseColumnSampler;topSlideSize:D
    • topSlideOffset

      private final double topSlideOffset
      Mappings:
      Namespace Name Mixin selector
      official m Lcpx;m:D
      intermediary field_28760 Lnet/minecraft/class_5818;field_28760:D
      named topSlideOffset Lnet/minecraft/world/gen/NoiseColumnSampler;topSlideOffset:D
    • bottomSlideTarget

      private final double bottomSlideTarget
      Mappings:
      Namespace Name Mixin selector
      official n Lcpx;n:D
      intermediary field_28761 Lnet/minecraft/class_5818;field_28761:D
      named bottomSlideTarget Lnet/minecraft/world/gen/NoiseColumnSampler;bottomSlideTarget:D
    • bottomSlideSize

      private final double bottomSlideSize
      Mappings:
      Namespace Name Mixin selector
      official o Lcpx;o:D
      intermediary field_28762 Lnet/minecraft/class_5818;field_28762:D
      named bottomSlideSize Lnet/minecraft/world/gen/NoiseColumnSampler;bottomSlideSize:D
    • bottomSlideOffset

      private final double bottomSlideOffset
      Mappings:
      Namespace Name Mixin selector
      official p Lcpx;p:D
      intermediary field_28763 Lnet/minecraft/class_5818;field_28763:D
      named bottomSlideOffset Lnet/minecraft/world/gen/NoiseColumnSampler;bottomSlideOffset:D
    • densityFactor

      private final double densityFactor
      Mappings:
      Namespace Name Mixin selector
      official q Lcpx;q:D
      intermediary field_28764 Lnet/minecraft/class_5818;field_28764:D
      named densityFactor Lnet/minecraft/world/gen/NoiseColumnSampler;densityFactor:D
    • densityOffset

      private final double densityOffset
      Mappings:
      Namespace Name Mixin selector
      official r Lcpx;r:D
      intermediary field_28765 Lnet/minecraft/class_5818;field_28765:D
      named densityOffset Lnet/minecraft/world/gen/NoiseColumnSampler;densityOffset:D
    • field_33653

      private final WeightSampler field_33653
      Mappings:
      Namespace Name Mixin selector
      official s Lcpx;s:Lcpw;
      intermediary field_33653 Lnet/minecraft/class_5818;field_33653:Lnet/minecraft/class_6357;
      named field_33653 Lnet/minecraft/world/gen/NoiseColumnSampler;field_33653:Lnet/minecraft/world/gen/chunk/WeightSampler;
  • Constructor Details

    • NoiseColumnSampler

      public NoiseColumnSampler(BiomeSource biomeSource, int horizontalNoiseResolution, int verticalNoiseResolution, int noiseSizeY, GenerationShapeConfig config, InterpolatedNoiseSampler noise, @Nullable @Nullable SimplexNoiseSampler islandNoise, OctavePerlinNoiseSampler densityNoise, WeightSampler weightSampler)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcpx;<init>(Lbxr;IIILcpz;Ldds;Lddy;Lddw;Lcpw;)V
      intermediary <init> Lnet/minecraft/class_5818;<init>(Lnet/minecraft/class_1966;IIILnet/minecraft/class_5309;Lnet/minecraft/class_5822;Lnet/minecraft/class_3541;Lnet/minecraft/class_3537;Lnet/minecraft/class_6357;)V
      named <init> Lnet/minecraft/world/gen/NoiseColumnSampler;<init>(Lnet/minecraft/world/biome/source/BiomeSource;IIILnet/minecraft/world/gen/chunk/GenerationShapeConfig;Lnet/minecraft/util/math/noise/InterpolatedNoiseSampler;Lnet/minecraft/util/math/noise/SimplexNoiseSampler;Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;Lnet/minecraft/world/gen/chunk/WeightSampler;)V
  • Method Details

    • sampleNoiseColumn

      public void sampleNoiseColumn(double[] buffer, int x, int z, GenerationShapeConfig config, int seaLevel, int minY, int noiseSizeY)
      Samples the noise for the given column and stores it in the buffer parameter.
      Mappings:
      Namespace Name Mixin selector
      official a Lcpx;a([DIILcpz;III)V
      intermediary method_33648 Lnet/minecraft/class_5818;method_33648([DIILnet/minecraft/class_5309;III)V
      named sampleNoiseColumn Lnet/minecraft/world/gen/NoiseColumnSampler;sampleNoiseColumn([DIILnet/minecraft/world/gen/chunk/GenerationShapeConfig;III)V
    • getOffset

      private double getOffset(int y, double depth, double scale, double randomDensityOffset)
      Calculates an offset for the noise.

      For example in the overworld, this makes lower y values solid while making higher y values air.

      Mappings:
      Namespace Name Mixin selector
      official a Lcpx;a(IDDD)D
      intermediary method_33646 Lnet/minecraft/class_5818;method_33646(IDDD)D
      named getOffset Lnet/minecraft/world/gen/NoiseColumnSampler;getOffset(IDDD)D
    • applySlides

      private double applySlides(double noise, int y)
      Interpolates the noise at the top and bottom of the world.
      Mappings:
      Namespace Name Mixin selector
      official a Lcpx;a(DI)D
      intermediary method_33645 Lnet/minecraft/class_5818;method_33645(DI)D
      named applySlides Lnet/minecraft/world/gen/NoiseColumnSampler;applySlides(DI)D
    • getDensityNoise

      private double getDensityNoise(int x, int z)
      Applies a random change to the density to subtly vary the height of the terrain.
      Mappings:
      Namespace Name Mixin selector
      official a Lcpx;a(II)D
      intermediary method_33647 Lnet/minecraft/class_5818;method_33647(II)D
      named getDensityNoise Lnet/minecraft/world/gen/NoiseColumnSampler;getDensityNoise(II)D