类 NoiseColumnSampler


  • public class NoiseColumnSampler
    extends Object
    Samples noise values for use in chunk generation.
    Mappings:
    Namespace Name
    official cov
    intermediary net/minecraft/class_5818
    named net/minecraft/world/gen/NoiseColumnSampler
    • 字段详细资料

      • field_31470

        private static final int field_31470
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lcov;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 Lcov;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 Lcov;c:Lbwt;
        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 Lcov;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 Lcov;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 Lcov;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 Lcov;g:Lcox;
        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 Lcov;h:Ldcs;
        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 Lcov;i:Ldcy;
        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 Lcov;j:Ldcw;
        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 Lcov;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 Lcov;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 Lcov;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 Lcov;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 Lcov;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 Lcov;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 Lcov;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 Lcov;r:D
        intermediary field_28765 Lnet/minecraft/class_5818;field_28765:D
        named densityOffset Lnet/minecraft/world/gen/NoiseColumnSampler;densityOffset:D
      • noiseCaveSampler

        @Nullable
        private final @Nullable NoiseCaveSampler noiseCaveSampler
        Mappings:
        Namespace Name Mixin selector
        official s Lcov;s:Lcog;
        intermediary field_28848 Lnet/minecraft/class_5818;field_28848:Lnet/minecraft/class_5833;
        named noiseCaveSampler Lnet/minecraft/world/gen/NoiseColumnSampler;noiseCaveSampler:Lnet/minecraft/world/gen/NoiseCaveSampler;
    • 构造器详细资料

      • NoiseColumnSampler

        public NoiseColumnSampler​(BiomeSource biomeSource,
                                  int horizontalNoiseResolution,
                                  int verticalNoiseResolution,
                                  int noiseSizeY,
                                  GenerationShapeConfig config,
                                  InterpolatedNoiseSampler noise,
                                  @Nullable
                                  @Nullable SimplexNoiseSampler islandNoise,
                                  OctavePerlinNoiseSampler densityNoise,
                                  @Nullable
                                  @Nullable NoiseCaveSampler noiseCaveSampler)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcov;<init>(Lbwt;IIILcox;Ldcs;Ldcy;Ldcw;Lcog;)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_5833;)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/NoiseCaveSampler;)V
    • 方法详细资料

      • 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 Lcov;a([DIILcox;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
      • sampleNoiseCaves

        private double sampleNoiseCaves​(int x,
                                        int y,
                                        int z,
                                        double noise)
        Mappings:
        Namespace Name Mixin selector
        official a Lcov;a(IIID)D
        intermediary method_33759 Lnet/minecraft/class_5818;method_33759(IIID)D
        named sampleNoiseCaves Lnet/minecraft/world/gen/NoiseColumnSampler;sampleNoiseCaves(IIID)D
      • 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 Lcov;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 Lcov;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 Lcov;a(II)D
        intermediary method_33647 Lnet/minecraft/class_5818;method_33647(II)D
        named getDensityNoise Lnet/minecraft/world/gen/NoiseColumnSampler;getDensityNoise(II)D