Package net.minecraft.world.gen.chunk
Class NoiseChunkGenerator
java.lang.Object
net.minecraft.world.gen.chunk.ChunkGenerator
net.minecraft.world.gen.chunk.NoiseChunkGenerator
public final class NoiseChunkGenerator extends ChunkGenerator
- Mappings:
Namespace Name official clyintermediary net/minecraft/class_3754named net/minecraft/world/gen/chunk/NoiseChunkGenerator
-
Field Summary
Fields Modifier and Type Field Description private static BlockStateAIRprivate static float[]BIOME_WEIGHT_TABLEstatic com.mojang.serialization.Codec<NoiseChunkGenerator>CODECprotected BlockStatedefaultBlockprotected BlockStatedefaultFluidprivate OctavePerlinNoiseSamplerdensityNoiseprivate inthorizontalNoiseResolutionprivate OctavePerlinNoiseSamplerinterpolationNoiseprivate SimplexNoiseSamplerislandNoiseprivate OctavePerlinNoiseSamplerlowerInterpolatedNoiseprivate static float[]NOISE_WEIGHT_TABLEprivate intnoiseSizeXprivate intnoiseSizeYprivate intnoiseSizeZprotected ChunkRandomrandomprivate longseedprotected Supplier<ChunkGeneratorSettings>settingsprivate NoiseSamplersurfaceDepthNoiseprivate OctavePerlinNoiseSamplerupperInterpolatedNoiseprivate intverticalNoiseResolutionprivate intworldHeightFields inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
biomeSource, populationSource -
Constructor Summary
Constructors Modifier Constructor Description NoiseChunkGenerator(BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)privateNoiseChunkGenerator(BiomeSource populationSource, BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings) -
Method Summary
Modifier and Type Method Description private voidbuildBedrock(Chunk chunk, Random random)voidbuildSurface(ChunkRegion region, Chunk chunk)private static doublecalculateNoiseWeight(int x, int y, int z)protected BlockStategetBlockState(double density, int y)protected com.mojang.serialization.Codec<? extends ChunkGenerator>getCodec()VerticalBlockSamplegetColumnSample(int x, int z)List<SpawnSettings.SpawnEntry>getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)intgetHeight(int x, int z, Heightmap.Type heightmapType)private static doublegetNoiseWeight(int x, int y, int z)private doublegetRandomDensityAt(int x, int z)intgetSeaLevel()intgetWorldHeight()booleanmatchesSettings(long seed, RegistryKey<ChunkGeneratorSettings> settingsKey)voidpopulateEntities(ChunkRegion region)voidpopulateNoise(WorldAccess world, StructureAccessor accessor, Chunk chunk)Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.private intsampleHeightmap(int x, int z, BlockState[] states, Predicate<BlockState> predicate)private doublesampleNoise(int x, int y, int z, double horizontalScale, double verticalScale, double horizontalStretch, double verticalStretch)private voidsampleNoiseColumn(double[] buffer, int x, int z)private double[]sampleNoiseColumn(int x, int z)ChunkGeneratorwithSeed(long seed)Methods inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
addStructureReferences, carve, generateFeatures, getBiomeSource, getHeightInGround, getHeightOnGround, getSpawnHeight, getStructuresConfig, isStrongholdStartingChunk, locateStructure, populateBiomes, setStructureStarts
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official dLcly;d:Lcom/mojang/serialization/Codec;intermediary field_24773Lnet/minecraft/class_3754;field_24773:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;CODEC:Lcom/mojang/serialization/Codec;
-
NOISE_WEIGHT_TABLE
private static final float[] NOISE_WEIGHT_TABLE- Mappings:
Namespace Name Mixin selector official iLcly;i:[Fintermediary field_16649Lnet/minecraft/class_3754;field_16649:[Fnamed NOISE_WEIGHT_TABLELnet/minecraft/world/gen/chunk/NoiseChunkGenerator;NOISE_WEIGHT_TABLE:[F
-
BIOME_WEIGHT_TABLE
private static final float[] BIOME_WEIGHT_TABLE- Mappings:
Namespace Name Mixin selector official jLcly;j:[Fintermediary field_24775Lnet/minecraft/class_3754;field_24775:[Fnamed BIOME_WEIGHT_TABLELnet/minecraft/world/gen/chunk/NoiseChunkGenerator;BIOME_WEIGHT_TABLE:[F
-
AIR
- Mappings:
Namespace Name Mixin selector official kLcly;k:Lchg;intermediary field_16648Lnet/minecraft/class_3754;field_16648:Lnet/minecraft/class_2680;named AIRLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;AIR:Lnet/minecraft/block/BlockState;
-
verticalNoiseResolution
private final int verticalNoiseResolution- Mappings:
Namespace Name Mixin selector official lLcly;l:Iintermediary field_16572Lnet/minecraft/class_3754;field_16572:Inamed verticalNoiseResolutionLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;verticalNoiseResolution:I
-
horizontalNoiseResolution
private final int horizontalNoiseResolution- Mappings:
Namespace Name Mixin selector official mLcly;m:Iintermediary field_16570Lnet/minecraft/class_3754;field_16570:Inamed horizontalNoiseResolutionLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;horizontalNoiseResolution:I
-
noiseSizeX
private final int noiseSizeX- Mappings:
Namespace Name Mixin selector official nLcly;n:Iintermediary field_16580Lnet/minecraft/class_3754;field_16580:Inamed noiseSizeXLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeX:I
-
noiseSizeY
private final int noiseSizeY- Mappings:
Namespace Name Mixin selector official oLcly;o:Iintermediary field_16579Lnet/minecraft/class_3754;field_16579:Inamed noiseSizeYLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeY:I
-
noiseSizeZ
private final int noiseSizeZ- Mappings:
Namespace Name Mixin selector official pLcly;p:Iintermediary field_16578Lnet/minecraft/class_3754;field_16578:Inamed noiseSizeZLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeZ:I
-
random
- Mappings:
Namespace Name Mixin selector official eLcly;e:Lcmh;intermediary field_16577Lnet/minecraft/class_3754;field_16577:Lnet/minecraft/class_2919;named randomLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;random:Lnet/minecraft/world/gen/ChunkRandom;
-
lowerInterpolatedNoise
- Mappings:
Namespace Name Mixin selector official qLcly;q:Lcyv;intermediary field_16574Lnet/minecraft/class_3754;field_16574:Lnet/minecraft/class_3537;named lowerInterpolatedNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;lowerInterpolatedNoise:Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
-
upperInterpolatedNoise
- Mappings:
Namespace Name Mixin selector official rLcly;r:Lcyv;intermediary field_16581Lnet/minecraft/class_3754;field_16581:Lnet/minecraft/class_3537;named upperInterpolatedNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;upperInterpolatedNoise:Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
-
interpolationNoise
- Mappings:
Namespace Name Mixin selector official sLcly;s:Lcyv;intermediary field_16575Lnet/minecraft/class_3754;field_16575:Lnet/minecraft/class_3537;named interpolationNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;interpolationNoise:Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
-
surfaceDepthNoise
- Mappings:
Namespace Name Mixin selector official tLcly;t:Lcyy;intermediary field_16571Lnet/minecraft/class_3754;field_16571:Lnet/minecraft/class_3757;named surfaceDepthNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;surfaceDepthNoise:Lnet/minecraft/util/math/noise/NoiseSampler;
-
densityNoise
- Mappings:
Namespace Name Mixin selector official uLcly;u:Lcyv;intermediary field_24776Lnet/minecraft/class_3754;field_24776:Lnet/minecraft/class_3537;named densityNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;densityNoise:Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
-
islandNoise
- Mappings:
Namespace Name Mixin selector official vLcly;v:Lcyx;intermediary field_24777Lnet/minecraft/class_3754;field_24777:Lnet/minecraft/class_3541;named islandNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;islandNoise:Lnet/minecraft/util/math/noise/SimplexNoiseSampler;
-
defaultBlock
- Mappings:
Namespace Name Mixin selector official fLcly;f:Lchg;intermediary field_16576Lnet/minecraft/class_3754;field_16576:Lnet/minecraft/class_2680;named defaultBlockLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;defaultBlock:Lnet/minecraft/block/BlockState;
-
defaultFluid
- Mappings:
Namespace Name Mixin selector official gLcly;g:Lchg;intermediary field_16573Lnet/minecraft/class_3754;field_16573:Lnet/minecraft/class_2680;named defaultFluidLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;defaultFluid:Lnet/minecraft/block/BlockState;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official wLcly;w:Jintermediary field_24778Lnet/minecraft/class_3754;field_24778:Jnamed seedLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;seed:J
-
settings
- Mappings:
Namespace Name Mixin selector official hLcly;h:Ljava/util/function/Supplier;intermediary field_24774Lnet/minecraft/class_3754;field_24774:Ljava/util/function/Supplier;named settingsLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;settings:Ljava/util/function/Supplier;
-
worldHeight
private final int worldHeight- Mappings:
Namespace Name Mixin selector official xLcly;x:Iintermediary field_24779Lnet/minecraft/class_3754;field_24779:Inamed worldHeightLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;worldHeight:I
-
-
Constructor Details
-
NoiseChunkGenerator
public NoiseChunkGenerator(BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)- Mappings:
Namespace Name Mixin selector official <init>Lcly;<init>(Lbuw;JLjava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_3754;<init>(Lnet/minecraft/class_1966;JLjava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;JLjava/util/function/Supplier;)V
-
NoiseChunkGenerator
private NoiseChunkGenerator(BiomeSource populationSource, BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)- Mappings:
Namespace Name Mixin selector official <init>Lcly;<init>(Lbuw;Lbuw;JLjava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_3754;<init>(Lnet/minecraft/class_1966;Lnet/minecraft/class_1966;JLjava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/world/biome/source/BiomeSource;JLjava/util/function/Supplier;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodecin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a()Lcom/mojang/serialization/Codec;intermediary method_28506Lnet/minecraft/class_2794;method_28506()Lcom/mojang/serialization/Codec;named getCodecLnet/minecraft/world/gen/chunk/ChunkGenerator;getCodec()Lcom/mojang/serialization/Codec;
-
withSeed
- Specified by:
withSeedin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(J)Lciz;intermediary method_27997Lnet/minecraft/class_2794;method_27997(J)Lnet/minecraft/class_2794;named withSeedLnet/minecraft/world/gen/chunk/ChunkGenerator;withSeed(J)Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
matchesSettings
- Mappings:
Namespace Name Mixin selector official aLcly;a(JLwa;)Zintermediary method_28548Lnet/minecraft/class_3754;method_28548(JLnet/minecraft/class_5321;)Znamed matchesSettingsLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;matchesSettings(JLnet/minecraft/util/registry/RegistryKey;)Z
-
sampleNoise
private double sampleNoise(int x, int y, int z, double horizontalScale, double verticalScale, double horizontalStretch, double verticalStretch)- Mappings:
Namespace Name Mixin selector official aLcly;a(IIIDDDD)Dintermediary method_16411Lnet/minecraft/class_3754;method_16411(IIIDDDD)Dnamed sampleNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleNoise(IIIDDDD)D
-
sampleNoiseColumn
private double[] sampleNoiseColumn(int x, int z)- Mappings:
Namespace Name Mixin selector official bLcly;b(II)[Dintermediary method_16406Lnet/minecraft/class_3754;method_16406(II)[Dnamed sampleNoiseColumnLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleNoiseColumn(II)[D
-
sampleNoiseColumn
private void sampleNoiseColumn(double[] buffer, int x, int z)- Mappings:
Namespace Name Mixin selector official aLcly;a([DII)Vintermediary method_16405Lnet/minecraft/class_3754;method_16405([DII)Vnamed sampleNoiseColumnLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleNoiseColumn([DII)V
-
getRandomDensityAt
private double getRandomDensityAt(int x, int z)- Mappings:
Namespace Name Mixin selector official cLcly;c(II)Dintermediary method_28553Lnet/minecraft/class_3754;method_28553(II)Dnamed getRandomDensityAtLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getRandomDensityAt(II)D
-
getHeight
- Specified by:
getHeightin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(IILclx$a;)Iintermediary method_16397Lnet/minecraft/class_2794;method_16397(IILnet/minecraft/class_2902$class_2903;)Inamed getHeightLnet/minecraft/world/gen/chunk/ChunkGenerator;getHeight(IILnet/minecraft/world/Heightmap$Type;)I
-
getColumnSample
- Specified by:
getColumnSamplein classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(II)Lbuf;intermediary method_26261Lnet/minecraft/class_2794;method_26261(II)Lnet/minecraft/class_4966;named getColumnSampleLnet/minecraft/world/gen/chunk/ChunkGenerator;getColumnSample(II)Lnet/minecraft/world/gen/chunk/VerticalBlockSample;
-
sampleHeightmap
private int sampleHeightmap(int x, int z, @Nullable BlockState[] states, @Nullable Predicate<BlockState> predicate)- Mappings:
Namespace Name Mixin selector official aLcly;a(II[Lchg;Ljava/util/function/Predicate;)Iintermediary method_26263Lnet/minecraft/class_3754;method_26263(II[Lnet/minecraft/class_2680;Ljava/util/function/Predicate;)Inamed sampleHeightmapLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleHeightmap(II[Lnet/minecraft/block/BlockState;Ljava/util/function/Predicate;)I
-
getBlockState
- Mappings:
Namespace Name Mixin selector official aLcly;a(DI)Lchg;intermediary method_26262Lnet/minecraft/class_3754;method_26262(DI)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getBlockState(DI)Lnet/minecraft/block/BlockState;
-
buildSurface
- Specified by:
buildSurfacein classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(Labb;Lcix;)Vintermediary method_12110Lnet/minecraft/class_2794;method_12110(Lnet/minecraft/class_3233;Lnet/minecraft/class_2791;)Vnamed buildSurfaceLnet/minecraft/world/gen/chunk/ChunkGenerator;buildSurface(Lnet/minecraft/world/ChunkRegion;Lnet/minecraft/world/chunk/Chunk;)V
-
buildBedrock
- Mappings:
Namespace Name Mixin selector official aLcly;a(Lcix;Ljava/util/Random;)Vintermediary method_16412Lnet/minecraft/class_3754;method_16412(Lnet/minecraft/class_2791;Ljava/util/Random;)Vnamed buildBedrockLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;buildBedrock(Lnet/minecraft/world/chunk/Chunk;Ljava/util/Random;)V
-
populateNoise
Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.- Specified by:
populateNoisein classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(Lbtv;Lbul;Lcix;)Vintermediary method_12088Lnet/minecraft/class_2794;method_12088(Lnet/minecraft/class_1936;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Vnamed populateNoiseLnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
-
getNoiseWeight
private static double getNoiseWeight(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official aLcly;a(III)Dintermediary method_16572Lnet/minecraft/class_3754;method_16572(III)Dnamed getNoiseWeightLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getNoiseWeight(III)D
-
calculateNoiseWeight
private static double calculateNoiseWeight(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official bLcly;b(III)Dintermediary method_16571Lnet/minecraft/class_3754;method_16571(III)Dnamed calculateNoiseWeightLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;calculateNoiseWeight(III)D
-
getWorldHeight
public int getWorldHeight()- Overrides:
getWorldHeightin classChunkGenerator- Mappings:
Namespace Name Mixin selector official eLciz;e()Iintermediary method_12104Lnet/minecraft/class_2794;method_12104()Inamed getWorldHeightLnet/minecraft/world/gen/chunk/ChunkGenerator;getWorldHeight()I
-
getSeaLevel
public int getSeaLevel()- Overrides:
getSeaLevelin classChunkGenerator- Mappings:
Namespace Name Mixin selector official fLciz;f()Iintermediary method_16398Lnet/minecraft/class_2794;method_16398()Inamed getSeaLevelLnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
-
getEntitySpawnList
public List<SpawnSettings.SpawnEntry> getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)- Overrides:
getEntitySpawnListin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(Lbut;Lbul;Larj;Lfx;)Ljava/util/List;intermediary method_12113Lnet/minecraft/class_2794;method_12113(Lnet/minecraft/class_1959;Lnet/minecraft/class_5138;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;)Ljava/util/List;named getEntitySpawnListLnet/minecraft/world/gen/chunk/ChunkGenerator;getEntitySpawnList(Lnet/minecraft/world/biome/Biome;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
-
populateEntities
- Overrides:
populateEntitiesin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLciz;a(Labb;)Vintermediary method_12107Lnet/minecraft/class_2794;method_12107(Lnet/minecraft/class_3233;)Vnamed populateEntitiesLnet/minecraft/world/gen/chunk/ChunkGenerator;populateEntities(Lnet/minecraft/world/ChunkRegion;)V
-