类 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 covintermediary net/minecraft/class_5818named net/minecraft/world/gen/NoiseColumnSampler
-
-
字段概要
字段 修饰符和类型 字段 说明 private static float[]BIOME_WEIGHT_TABLETable of weights used to weight faraway biomes less than nearby biomes.private BiomeSourcebiomeSourceprivate doublebottomSlideOffsetprivate doublebottomSlideSizeprivate doublebottomSlideTargetprivate GenerationShapeConfigconfigprivate doubledensityFactorprivate OctavePerlinNoiseSamplerdensityNoiseprivate doubledensityOffsetprivate static intfield_31470private inthorizontalNoiseResolutionprivate @Nullable SimplexNoiseSamplerislandNoiseprivate InterpolatedNoiseSamplernoiseprivate @Nullable NoiseCaveSamplernoiseCaveSamplerprivate intnoiseSizeYprivate doubletopSlideOffsetprivate doubletopSlideSizeprivate doubletopSlideTargetprivate intverticalNoiseResolution
-
构造器概要
构造器 构造器 说明 NoiseColumnSampler(BiomeSource biomeSource, int horizontalNoiseResolution, int verticalNoiseResolution, int noiseSizeY, GenerationShapeConfig config, InterpolatedNoiseSampler noise, @Nullable SimplexNoiseSampler islandNoise, OctavePerlinNoiseSampler densityNoise, @Nullable NoiseCaveSampler noiseCaveSampler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private 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.private doublegetOffset(int y, double depth, double scale, double randomDensityOffset)Calculates an offset for the noise.private doublesampleNoiseCaves(int x, int y, int z, double noise)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_31470
private static final int field_31470
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLcov;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_TABLE
Table of weights used to weight faraway biomes less than nearby biomes.- Mappings:
Namespace Name Mixin selector official bLcov;b:[Fintermediary field_28749Lnet/minecraft/class_5818;field_28749:[Fnamed BIOME_WEIGHT_TABLELnet/minecraft/world/gen/NoiseColumnSampler;BIOME_WEIGHT_TABLE:[F
-
biomeSource
private final BiomeSource biomeSource
- Mappings:
Namespace Name Mixin selector official cLcov;c:Lbwt;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 dLcov;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 eLcov;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 fLcov;f:Iintermediary field_28753Lnet/minecraft/class_5818;field_28753:Inamed noiseSizeYLnet/minecraft/world/gen/NoiseColumnSampler;noiseSizeY:I
-
config
private final GenerationShapeConfig config
- Mappings:
Namespace Name Mixin selector official gLcov;g:Lcox;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
private final InterpolatedNoiseSampler noise
- Mappings:
Namespace Name Mixin selector official hLcov;h:Ldcs;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
@Nullable private final @Nullable SimplexNoiseSampler islandNoise
- Mappings:
Namespace Name Mixin selector official iLcov;i:Ldcy;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
private final OctavePerlinNoiseSampler densityNoise
- Mappings:
Namespace Name Mixin selector official jLcov;j:Ldcw;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;
-
topSlideTarget
private final double topSlideTarget
- Mappings:
Namespace Name Mixin selector official kLcov;k: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 lLcov;l: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 mLcov;m: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 nLcov;n: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 oLcov;o: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 pLcov;p: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 qLcov;q: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 rLcov;r:Dintermediary field_28765Lnet/minecraft/class_5818;field_28765:Dnamed densityOffsetLnet/minecraft/world/gen/NoiseColumnSampler;densityOffset:D
-
noiseCaveSampler
@Nullable private final @Nullable NoiseCaveSampler noiseCaveSampler
- Mappings:
Namespace Name Mixin selector official sLcov;s:Lcog;intermediary field_28848Lnet/minecraft/class_5818;field_28848:Lnet/minecraft/class_5833;named noiseCaveSamplerLnet/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;)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_5833;)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/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 aLcov;a([DIILcox;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
-
sampleNoiseCaves
private double sampleNoiseCaves(int x, int y, int z, double noise)- Mappings:
Namespace Name Mixin selector official aLcov;a(IIID)Dintermediary method_33759Lnet/minecraft/class_5818;method_33759(IIID)Dnamed sampleNoiseCavesLnet/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 aLcov;a(IDDD)Dintermediary method_33646Lnet/minecraft/class_5818;method_33646(IDDD)Dnamed getOffsetLnet/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 aLcov;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 aLcov;a(II)Dintermediary method_33647Lnet/minecraft/class_5818;method_33647(II)Dnamed getDensityNoiseLnet/minecraft/world/gen/NoiseColumnSampler;getDensityNoise(II)D
-
-