public class FlatChunkGenerator extends ChunkGenerator
| Modifier and Type | Field and Description |
|---|---|
static com.mojang.serialization.Codec<FlatChunkGenerator> |
CODEC |
private FlatChunkGeneratorConfig |
config |
biomeSource, populationSource| Constructor and Description |
|---|
FlatChunkGenerator(FlatChunkGeneratorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSurface(ChunkRegion region,
Chunk chunk) |
protected com.mojang.serialization.Codec<? extends ChunkGenerator> |
getCodec() |
BlockView |
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) |
addStructureReferences, carve, generateFeatures, getBiomeSource, getEntitySpawnList, getHeightInGround, getHeightOnGround, getSeaLevel, getStructuresConfig, getWorldHeight, isStrongholdStartingChunk, locateStructure, populateBiomes, populateEntities, setStructureStartspublic static final com.mojang.serialization.Codec<FlatChunkGenerator> CODEC
private final FlatChunkGeneratorConfig config
public FlatChunkGenerator(FlatChunkGeneratorConfig config)
protected com.mojang.serialization.Codec<? extends ChunkGenerator> getCodec()
getCodec in class ChunkGenerator@Environment(value=CLIENT) public ChunkGenerator withSeed(long seed)
withSeed in class ChunkGeneratorpublic FlatChunkGeneratorConfig getConfig()
public void buildSurface(ChunkRegion region, Chunk chunk)
buildSurface in class ChunkGeneratorpublic int getSpawnHeight()
getSpawnHeight in class ChunkGeneratorpublic void populateNoise(WorldAccess world, StructureAccessor accessor, Chunk chunk)
populateNoise in class ChunkGeneratorpublic int getHeight(int x,
int z,
Heightmap.Type heightmapType)
getHeight in class ChunkGeneratorpublic BlockView getColumnSample(int x, int z)
getColumnSample in class ChunkGenerator