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, setStructureStarts
public 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 ChunkGenerator
public FlatChunkGeneratorConfig getConfig()
public void buildSurface(ChunkRegion region, Chunk chunk)
buildSurface
in class ChunkGenerator
public int getSpawnHeight()
getSpawnHeight
in class ChunkGenerator
public void populateNoise(WorldAccess world, StructureAccessor accessor, Chunk chunk)
populateNoise
in class ChunkGenerator
public int getHeight(int x, int z, Heightmap.Type heightmapType)
getHeight
in class ChunkGenerator
public BlockView getColumnSample(int x, int z)
getColumnSample
in class ChunkGenerator