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 cnnintermediary net/minecraft/class_3754named net/minecraft/world/gen/chunk/NoiseChunkGenerator
-
Field Summary
Fields Modifier and Type Field Description private static BlockStateAIRprivate BlockInterpolatorblockInterpolatorstatic com.mojang.serialization.Codec<NoiseChunkGenerator>CODECprotected BlockStatedefaultBlockprotected BlockStatedefaultFluidprivate DoublePerlinNoiseSampleredgeDensityNoiseprivate static BlockState[]EMPTYprivate booleanhasAquifersprivate inthorizontalNoiseResolutionprivate NoiseColumnSamplernoiseColumnSamplerprivate intnoiseSizeXprivate intnoiseSizeYprivate intnoiseSizeZprivate longseedprotected Supplier<ChunkGeneratorSettings>settingsprivate NoiseSamplersurfaceDepthNoiseprivate intverticalNoiseResolutionprivate DoublePerlinNoiseSamplerwaterLevelNoiseprivate 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)Places the surface blocks of the biomes after the noise has been generated.protected BlockStategetBlockState(StructureWeightSampler structures, @Nullable AquiferSampler aquiferSampler, BlockInterpolator blockInterpolator, int x, int y, int z, double noise)protected com.mojang.serialization.Codec<? extends ChunkGenerator>getCodec()VerticalBlockSamplegetColumnSample(int x, int z, HeightLimitView world)Returns a sample of all the block states in a column for use in structure generation.List<SpawnSettings.SpawnEntry>getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)intgetHeight(int x, int z, Heightmap.Type heightmap, HeightLimitView world)Returns the raw noise height of a column for use in structure generation.intgetMinimumY()intgetSeaLevel()intgetWorldHeight()booleanmatchesSettings(long seed, RegistryKey<ChunkGeneratorSettings> settingsKey)private voidmethod_34284(double[] double2, int int2, int int3, int int4, int int5)voidpopulateEntities(ChunkRegion region)CompletableFuture<Chunk>populateNoise(Executor executor, 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 ChunkpopulateNoise(StructureAccessor accessor, Chunk chunk, int minY, int noiseSizeY)private OptionalIntsampleHeightmap(int x, int z, @Nullable BlockState[] states, @Nullable Predicate<BlockState> predicate, int minY, int noiseSizeY)private double[]sampleNoiseColumn(int x, int z, int minY, int noiseSizeY)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 dLcnn;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;
-
AIR
- Mappings:
Namespace Name Mixin selector official hLcnn;h:Lcio;intermediary field_16648Lnet/minecraft/class_3754;field_16648:Lnet/minecraft/class_2680;named AIRLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;AIR:Lnet/minecraft/block/BlockState;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official iLcnn;i:[Lcio;intermediary field_28746Lnet/minecraft/class_3754;field_28746:[Lnet/minecraft/class_2680;named EMPTYLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;EMPTY:[Lnet/minecraft/block/BlockState;
-
verticalNoiseResolution
private final int verticalNoiseResolution- Mappings:
Namespace Name Mixin selector official jLcnn;j: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 kLcnn;k: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 lLcnn;l: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 mLcnn;m:Iintermediary field_28747Lnet/minecraft/class_3754;field_28747:Inamed noiseSizeYLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeY:I
-
noiseSizeZ
private final int noiseSizeZ- Mappings:
Namespace Name Mixin selector official nLcnn;n:Iintermediary field_16578Lnet/minecraft/class_3754;field_16578:Inamed noiseSizeZLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeZ:I
-
surfaceDepthNoise
- Mappings:
Namespace Name Mixin selector official oLcnn;o:Ldbl;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;
-
edgeDensityNoise
- Mappings:
Namespace Name Mixin selector official pLcnn;p:Ldbh;intermediary field_28843Lnet/minecraft/class_3754;field_28843:Lnet/minecraft/class_5216;named edgeDensityNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;edgeDensityNoise:Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
-
waterLevelNoise
- Mappings:
Namespace Name Mixin selector official qLcnn;q:Ldbh;intermediary field_28844Lnet/minecraft/class_3754;field_28844:Lnet/minecraft/class_5216;named waterLevelNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;waterLevelNoise:Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
-
defaultBlock
- Mappings:
Namespace Name Mixin selector official eLcnn;e:Lcio;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 fLcnn;f:Lcio;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 rLcnn;r:Jintermediary field_24778Lnet/minecraft/class_3754;field_24778:Jnamed seedLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;seed:J
-
settings
- Mappings:
Namespace Name Mixin selector official gLcnn;g: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 sLcnn;s:Iintermediary field_24779Lnet/minecraft/class_3754;field_24779:Inamed worldHeightLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;worldHeight:I
-
noiseColumnSampler
- Mappings:
Namespace Name Mixin selector official tLcnn;t:Lcnq;intermediary field_28748Lnet/minecraft/class_3754;field_28748:Lnet/minecraft/class_5818;named noiseColumnSamplerLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseColumnSampler:Lnet/minecraft/world/gen/NoiseColumnSampler;
-
hasAquifers
private final boolean hasAquifers- Mappings:
Namespace Name Mixin selector official uLcnn;u:Zintermediary field_28845Lnet/minecraft/class_3754;field_28845:Znamed hasAquifersLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;hasAquifers:Z
-
blockInterpolator
- Mappings:
Namespace Name Mixin selector official vLcnn;v:Lcna;intermediary field_28913Lnet/minecraft/class_3754;field_28913:Lnet/minecraft/class_5840;named blockInterpolatorLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;blockInterpolator:Lnet/minecraft/world/gen/BlockInterpolator;
-
-
Constructor Details
-
NoiseChunkGenerator
public NoiseChunkGenerator(BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)- Mappings:
Namespace Name Mixin selector official <init>Lcnn;<init>(Lbvs;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>Lcnn;<init>(Lbvs;Lbvs;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 aLckj;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 aLckj;a(J)Lckj;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 aLcnn;a(JLwk;)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
-
sampleNoiseColumn
private double[] sampleNoiseColumn(int x, int z, int minY, int noiseSizeY)- Mappings:
Namespace Name Mixin selector official aLcnn;a(IIII)[Dintermediary method_16406Lnet/minecraft/class_3754;method_16406(IIII)[Dnamed sampleNoiseColumnLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleNoiseColumn(IIII)[D
-
method_34284
private void method_34284(double[] double2, int int2, int int3, int int4, int int5)- Mappings:
Namespace Name Mixin selector official aLcnn;a([DIIII)Vintermediary method_34284Lnet/minecraft/class_3754;method_34284([DIIII)Vnamed method_34284Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;method_34284([DIIII)V
-
getHeight
Returns the raw noise height of a column for use in structure generation.- Specified by:
getHeightin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLckj;a(IILcnm$a;Lbus;)Iintermediary method_16397Lnet/minecraft/class_2794;method_16397(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;)Inamed getHeightLnet/minecraft/world/gen/chunk/ChunkGenerator;getHeight(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;)I
-
getColumnSample
Returns a sample of all the block states in a column for use in structure generation.- Specified by:
getColumnSamplein classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLckj;a(IILbus;)Lbvb;intermediary method_26261Lnet/minecraft/class_2794;method_26261(IILnet/minecraft/class_5539;)Lnet/minecraft/class_4966;named getColumnSampleLnet/minecraft/world/gen/chunk/ChunkGenerator;getColumnSample(IILnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/gen/chunk/VerticalBlockSample;
-
sampleHeightmap
private OptionalInt sampleHeightmap(int x, int z, @Nullable @Nullable BlockState[] states, @Nullable @Nullable Predicate<BlockState> predicate, int minY, int noiseSizeY)- Mappings:
Namespace Name Mixin selector official aLcnn;a(II[Lcio;Ljava/util/function/Predicate;II)Ljava/util/OptionalInt;intermediary method_26263Lnet/minecraft/class_3754;method_26263(II[Lnet/minecraft/class_2680;Ljava/util/function/Predicate;II)Ljava/util/OptionalInt;named sampleHeightmapLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleHeightmap(II[Lnet/minecraft/block/BlockState;Ljava/util/function/Predicate;II)Ljava/util/OptionalInt;
-
getBlockState
protected BlockState getBlockState(StructureWeightSampler structures, @Nullable @Nullable AquiferSampler aquiferSampler, BlockInterpolator blockInterpolator, int x, int y, int z, double noise)- Mappings:
Namespace Name Mixin selector official aLcnn;a(Lcnb;Lcmz;Lcna;IIID)Lcio;intermediary method_33643Lnet/minecraft/class_3754;method_33643(Lnet/minecraft/class_5817;Lnet/minecraft/class_5832;Lnet/minecraft/class_5840;IIID)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getBlockState(Lnet/minecraft/world/gen/StructureWeightSampler;Lnet/minecraft/world/gen/AquiferSampler;Lnet/minecraft/world/gen/BlockInterpolator;IIID)Lnet/minecraft/block/BlockState;
-
buildSurface
Places the surface blocks of the biomes after the noise has been generated.- Specified by:
buildSurfacein classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLckj;a(Labl;Lckh;)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 aLcnn;a(Lckh;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
public CompletableFuture<Chunk> populateNoise(Executor executor, 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.- Specified by:
populateNoisein classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLckj;a(Ljava/util/concurrent/Executor;Lbvh;Lckh;)Ljava/util/concurrent/CompletableFuture;intermediary method_12088Lnet/minecraft/class_2794;method_12088(Ljava/util/concurrent/Executor;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;named populateNoiseLnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Ljava/util/concurrent/Executor;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
-
populateNoise
- Mappings:
Namespace Name Mixin selector official aLcnn;a(Lbvh;Lckh;II)Lckh;intermediary method_33754Lnet/minecraft/class_3754;method_33754(Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;II)Lnet/minecraft/class_2791;named populateNoiseLnet/minecraft/world/gen/chunk/NoiseChunkGenerator;populateNoise(Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;II)Lnet/minecraft/world/chunk/Chunk;
-
getWorldHeight
public int getWorldHeight()- Overrides:
getWorldHeightin classChunkGenerator- Mappings:
Namespace Name Mixin selector official eLckj;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 fLckj;f()Iintermediary method_16398Lnet/minecraft/class_2794;method_16398()Inamed getSeaLevelLnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
-
getMinimumY
public int getMinimumY()- Overrides:
getMinimumYin classChunkGenerator- Mappings:
Namespace Name Mixin selector official gLckj;g()Iintermediary method_33730Lnet/minecraft/class_2794;method_33730()Inamed getMinimumYLnet/minecraft/world/gen/chunk/ChunkGenerator;getMinimumY()I
-
getEntitySpawnList
public List<SpawnSettings.SpawnEntry> getEntitySpawnList(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)- Overrides:
getEntitySpawnListin classChunkGenerator- Mappings:
Namespace Name Mixin selector official aLckj;a(Lbvp;Lbvh;Lasd;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 aLckj;a(Labl;)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
-