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>
CODEC
private FlatChunkGeneratorConfig
config
Fields 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 void
buildSurface(ChunkRegion region, Chunk chunk)
protected com.mojang.serialization.Codec<? extends ChunkGenerator>
getCodec()
VerticalBlockSample
getColumnSample(int x, int z)
FlatChunkGeneratorConfig
getConfig()
int
getHeight(int x, int z, Heightmap.Type heightmapType)
int
getSpawnHeight()
void
populateNoise(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.ChunkGenerator
withSeed(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:
getCodec
in classChunkGenerator
-
withSeed
- Specified by:
withSeed
in classChunkGenerator
-
getConfig
-
buildSurface
- Specified by:
buildSurface
in classChunkGenerator
-
getSpawnHeight
public int getSpawnHeight()- Overrides:
getSpawnHeight
in 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:
populateNoise
in classChunkGenerator
-
getHeight
- Specified by:
getHeight
in classChunkGenerator
-
getColumnSample
- Specified by:
getColumnSample
in classChunkGenerator
-