Package net.minecraft.world.gen.chunk
Class FlatChunkGenerator
java.lang.Object
net.minecraft.world.gen.chunk.ChunkGenerator
net.minecraft.world.gen.chunk.FlatChunkGenerator
public class FlatChunkGenerator extends ChunkGenerator
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FlatChunkGenerator>CODECprivate FlatChunkGeneratorConfigconfigFields inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
biomeSource, populationSource -
Constructor Summary
Constructors Constructor Description FlatChunkGenerator(FlatChunkGeneratorConfig config) -
Method Summary
Modifier and Type Method Description voidbuildSurface(ChunkRegion region, Chunk chunk)Places the surface blocks of the biomes after the noise has been generated.protected com.mojang.serialization.Codec<? extends ChunkGenerator>getCodec()BlockViewgetColumnSample(int x, int z)FlatChunkGeneratorConfiggetConfig()intgetHeight(int x, int z, Heightmap.Type heightmapType)intgetSpawnHeight()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.ChunkGeneratorwithSeed(long seed)Methods inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
addStructureReferences, carve, generateFeatures, getBiomeSource, getEntitySpawnList, getHeightInGround, getHeightOnGround, getSeaLevel, getStructuresConfig, getWorldHeight, isStrongholdStartingChunk, locateStructure, populateBiomes, populateEntities, setStructureStarts
-
Field Details
-
CODEC
-
config
-
-
Constructor Details
-
FlatChunkGenerator
-
-
Method Details
-
getCodec
- Specified by:
getCodecin classChunkGenerator
-
withSeed
- Specified by:
withSeedin classChunkGenerator
-
getConfig
-
buildSurface
Places the surface blocks of the biomes after the noise has been generated.- Specified by:
buildSurfacein classChunkGenerator
-
getSpawnHeight
public int getSpawnHeight()- Overrides:
getSpawnHeightin classChunkGenerator
-
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
-
getHeight
- Specified by:
getHeightin classChunkGenerator
-
getColumnSample
- Specified by:
getColumnSamplein classChunkGenerator
-