Package net.minecraft.world.gen
Class NoiseColumnSampler
java.lang.Object
net.minecraft.world.gen.NoiseColumnSampler
Samples noise values for use in chunk generation.
- Mappings:
Namespace Name official crkintermediary net/minecraft/class_5818named net/minecraft/world/gen/NoiseColumnSampler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float[]Table of weights used to weight faraway biomes less than nearby biomes.private final BiomeSourceprivate final doubleprivate final doubleprivate final doubleprivate final GenerationShapeConfigprivate final doubleprivate final OctavePerlinNoiseSamplerprivate final doubleprivate static final intprivate final DoublePerlinNoiseSamplerprivate final intprivate final @Nullable SimplexNoiseSamplerprivate final InterpolatedNoiseSamplerprivate final intprivate final doubleprivate final doubleprivate final doubleprivate final intprivate final WeightSampler -
Constructor Summary
ConstructorsConstructorDescriptionNoiseColumnSampler(BiomeSource biomeSource, int horizontalNoiseResolution, int verticalNoiseResolution, int noiseSizeY, GenerationShapeConfig config, InterpolatedNoiseSampler noise, @Nullable SimplexNoiseSampler islandNoise, OctavePerlinNoiseSampler densityNoise, WeightSampler weightSampler) -
Method Summary
Modifier and TypeMethodDescriptionprivate doubleapplySlides(double noise, int y) Interpolates the noise at the top and bottom of the world.private doublegetDensityNoise(int x, int z) Applies a random change to the density to subtly vary the height of the terrain.static doublegetDepth(double densityFactor, double densityOffset, double height) static doublegetDepth(double densityFactor, double densityOffset, double height, double offset) private doublegetOffset(double verticalNoiseResolution, double offset, double double2, double double3, double double4) Calculates an offset for the noise.private booleanmethod_37763(double double2) protected intmethod_37766(int int2, int int3) protected NoiseColumnSampler.class_6483method_37849(int int2, int int3) private doublemethod_37873(double double2, double double3, double double4) voidsampleNoiseColumn(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.
-
Field Details
-
field_31470
private static final int field_31470- See Also:
- Mappings:
Namespace Name Mixin selector official aLcrk;a:Iintermediary field_31470Lnet/minecraft/class_5818;field_31470:Inamed field_31470Lnet/minecraft/world/gen/NoiseColumnSampler;field_31470:I
-
BIOME_WEIGHT_TABLE
private static final float[] BIOME_WEIGHT_TABLETable of weights used to weight faraway biomes less than nearby biomes.- Mappings:
Namespace Name Mixin selector official bLcrk;b:[Fintermediary field_28749Lnet/minecraft/class_5818;field_28749:[Fnamed BIOME_WEIGHT_TABLELnet/minecraft/world/gen/NoiseColumnSampler;BIOME_WEIGHT_TABLE:[F
-
biomeSource
- Mappings:
Namespace Name Mixin selector official cLcrk;c:Lbyz;intermediary field_28750Lnet/minecraft/class_5818;field_28750:Lnet/minecraft/class_1966;named biomeSourceLnet/minecraft/world/gen/NoiseColumnSampler;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
horizontalNoiseResolution
private final int horizontalNoiseResolution- Mappings:
Namespace Name Mixin selector official dLcrk;d:Iintermediary field_28751Lnet/minecraft/class_5818;field_28751:Inamed horizontalNoiseResolutionLnet/minecraft/world/gen/NoiseColumnSampler;horizontalNoiseResolution:I
-
verticalNoiseResolution
private final int verticalNoiseResolution- Mappings:
Namespace Name Mixin selector official eLcrk;e:Iintermediary field_28752Lnet/minecraft/class_5818;field_28752:Inamed verticalNoiseResolutionLnet/minecraft/world/gen/NoiseColumnSampler;verticalNoiseResolution:I
-
noiseSizeY
private final int noiseSizeY- Mappings:
Namespace Name Mixin selector official fLcrk;f:Iintermediary field_28753Lnet/minecraft/class_5818;field_28753:Inamed noiseSizeYLnet/minecraft/world/gen/NoiseColumnSampler;noiseSizeY:I
-
config
- Mappings:
Namespace Name Mixin selector official gLcrk;g:Lcrm;intermediary field_28754Lnet/minecraft/class_5818;field_28754:Lnet/minecraft/class_5309;named configLnet/minecraft/world/gen/NoiseColumnSampler;config:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
noise
- Mappings:
Namespace Name Mixin selector official hLcrk;h:Ldfn;intermediary field_28755Lnet/minecraft/class_5818;field_28755:Lnet/minecraft/class_5822;named noiseLnet/minecraft/world/gen/NoiseColumnSampler;noise:Lnet/minecraft/util/math/noise/InterpolatedNoiseSampler;
-
islandNoise
- Mappings:
Namespace Name Mixin selector official iLcrk;i:Ldft;intermediary field_28756Lnet/minecraft/class_5818;field_28756:Lnet/minecraft/class_3541;named islandNoiseLnet/minecraft/world/gen/NoiseColumnSampler;islandNoise:Lnet/minecraft/util/math/noise/SimplexNoiseSampler;
-
densityNoise
- Mappings:
Namespace Name Mixin selector official jLcrk;j:Ldfr;intermediary field_28757Lnet/minecraft/class_5818;field_28757:Lnet/minecraft/class_3537;named densityNoiseLnet/minecraft/world/gen/NoiseColumnSampler;densityNoise:Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
-
field_34344
- Mappings:
Namespace Name Mixin selector official kLcrk;k:Ldfq;intermediary field_34344Lnet/minecraft/class_5818;field_34344:Lnet/minecraft/class_5216;named field_34344Lnet/minecraft/world/gen/NoiseColumnSampler;field_34344:Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
-
topSlideTarget
private final double topSlideTarget- Mappings:
Namespace Name Mixin selector official lLcrk;l:Dintermediary field_28758Lnet/minecraft/class_5818;field_28758:Dnamed topSlideTargetLnet/minecraft/world/gen/NoiseColumnSampler;topSlideTarget:D
-
topSlideSize
private final double topSlideSize- Mappings:
Namespace Name Mixin selector official mLcrk;m:Dintermediary field_28759Lnet/minecraft/class_5818;field_28759:Dnamed topSlideSizeLnet/minecraft/world/gen/NoiseColumnSampler;topSlideSize:D
-
topSlideOffset
private final double topSlideOffset- Mappings:
Namespace Name Mixin selector official nLcrk;n:Dintermediary field_28760Lnet/minecraft/class_5818;field_28760:Dnamed topSlideOffsetLnet/minecraft/world/gen/NoiseColumnSampler;topSlideOffset:D
-
bottomSlideTarget
private final double bottomSlideTarget- Mappings:
Namespace Name Mixin selector official oLcrk;o:Dintermediary field_28761Lnet/minecraft/class_5818;field_28761:Dnamed bottomSlideTargetLnet/minecraft/world/gen/NoiseColumnSampler;bottomSlideTarget:D
-
bottomSlideSize
private final double bottomSlideSize- Mappings:
Namespace Name Mixin selector official pLcrk;p:Dintermediary field_28762Lnet/minecraft/class_5818;field_28762:Dnamed bottomSlideSizeLnet/minecraft/world/gen/NoiseColumnSampler;bottomSlideSize:D
-
bottomSlideOffset
private final double bottomSlideOffset- Mappings:
Namespace Name Mixin selector official qLcrk;q:Dintermediary field_28763Lnet/minecraft/class_5818;field_28763:Dnamed bottomSlideOffsetLnet/minecraft/world/gen/NoiseColumnSampler;bottomSlideOffset:D
-
densityFactor
private final double densityFactor- Mappings:
Namespace Name Mixin selector official rLcrk;r:Dintermediary field_28764Lnet/minecraft/class_5818;field_28764:Dnamed densityFactorLnet/minecraft/world/gen/NoiseColumnSampler;densityFactor:D
-
densityOffset
private final double densityOffset- Mappings:
Namespace Name Mixin selector official sLcrk;s:Dintermediary field_28765Lnet/minecraft/class_5818;field_28765:Dnamed densityOffsetLnet/minecraft/world/gen/NoiseColumnSampler;densityOffset:D
-
weightSampler
- Mappings:
Namespace Name Mixin selector official tLcrk;t:Lcrj;intermediary field_33653Lnet/minecraft/class_5818;field_33653:Lnet/minecraft/class_6357;named weightSamplerLnet/minecraft/world/gen/NoiseColumnSampler;weightSampler: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>Lcrk;<init>(Lbyz;IIILcrm;Ldfn;Ldft;Ldfr;Lcrj;)Vintermediary <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;)Vnamed <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 aLcrk;a([DIILcrm;III)Vintermediary method_33648Lnet/minecraft/class_5818;method_33648([DIILnet/minecraft/class_5309;III)Vnamed sampleNoiseColumnLnet/minecraft/world/gen/NoiseColumnSampler;sampleNoiseColumn([DIILnet/minecraft/world/gen/chunk/GenerationShapeConfig;III)V
-
method_37873
private double method_37873(double double2, double double3, double double4) - Mappings:
Namespace Name Mixin selector official bLcrk;b(DDD)Dintermediary method_37873Lnet/minecraft/class_5818;method_37873(DDD)Dnamed method_37873Lnet/minecraft/world/gen/NoiseColumnSampler;method_37873(DDD)D
-
getOffset
private double getOffset(double verticalNoiseResolution, double offset, double double2, double double3, double double4) 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 aLcrk;a(DDDDD)Dintermediary method_33646Lnet/minecraft/class_5818;method_33646(DDDDD)Dnamed getOffsetLnet/minecraft/world/gen/NoiseColumnSampler;getOffset(DDDDD)D
-
getDepth
public static double getDepth(double densityFactor, double densityOffset, double height) - Mappings:
Namespace Name Mixin selector official aLcrk;a(DDD)Dintermediary method_37764Lnet/minecraft/class_5818;method_37764(DDD)Dnamed getDepthLnet/minecraft/world/gen/NoiseColumnSampler;getDepth(DDD)D
-
getDepth
public static double getDepth(double densityFactor, double densityOffset, double height, double offset) - Mappings:
Namespace Name Mixin selector official aLcrk;a(DDDD)Dintermediary method_37765Lnet/minecraft/class_5818;method_37765(DDDD)Dnamed getDepthLnet/minecraft/world/gen/NoiseColumnSampler;getDepth(DDDD)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 aLcrk;a(DI)Dintermediary method_33645Lnet/minecraft/class_5818;method_33645(DI)Dnamed applySlidesLnet/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 cLcrk;c(II)Dintermediary method_33647Lnet/minecraft/class_5818;method_33647(II)Dnamed getDensityNoiseLnet/minecraft/world/gen/NoiseColumnSampler;getDensityNoise(II)D
-
method_37849
- Mappings:
Namespace Name Mixin selector official aLcrk;a(II)Lcrk$a;intermediary method_37849Lnet/minecraft/class_5818;method_37849(II)Lnet/minecraft/class_5818$class_6483;named method_37849Lnet/minecraft/world/gen/NoiseColumnSampler;method_37849(II)Lnet/minecraft/world/gen/NoiseColumnSampler$class_6483;
-
method_37766
protected int method_37766(int int2, int int3) - Mappings:
Namespace Name Mixin selector official bLcrk;b(II)Iintermediary method_37766Lnet/minecraft/class_5818;method_37766(II)Inamed method_37766Lnet/minecraft/world/gen/NoiseColumnSampler;method_37766(II)I
-
method_37763
private boolean method_37763(double double2) - Mappings:
Namespace Name Mixin selector official aLcrk;a(D)Zintermediary method_37763Lnet/minecraft/class_5818;method_37763(D)Znamed method_37763Lnet/minecraft/world/gen/NoiseColumnSampler;method_37763(D)Z
-