public class FlatChunkGenerator extends ChunkGenerator
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
FlatChunkGenerator.FlatChunkGeneratorBiome |
| Modifier and Type | Field and Description |
|---|---|
private Biome |
biome |
private CatSpawner |
catSpawner |
private FlatChunkGeneratorConfig |
generatorConfig |
private PhantomSpawner |
phantomSpawner |
biomeSource| Constructor and Description |
|---|
FlatChunkGenerator(FlatChunkGeneratorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSurface(ChunkRegion region,
Chunk chunk) |
ChunkGenerator |
create(long seed) |
private Biome |
getBiome() |
BlockView |
getColumnSample(int x,
int z) |
protected Biome |
getDecorationBiome(BiomeAccess biomeAccess,
BlockPos pos) |
int |
getHeight(int x,
int z,
Heightmap.Type heightmapType) |
int |
getSpawnHeight() |
<C extends FeatureConfig> |
getStructureConfig(Biome biome,
StructureFeature<C> feature) |
boolean |
hasStructure(Biome biome,
StructureFeature<? extends FeatureConfig> feature) |
boolean |
hasStructure(StructureFeature<?> feature) |
BlockPos |
locateStructure(ServerWorld world,
String id,
BlockPos center,
int radius,
boolean skipExistingChunks) |
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.
|
void |
spawnEntities(ServerWorld world,
boolean spawnMonsters,
boolean spawnAnimals) |
addStructureReferences, carve, generateFeatures, getBiomeSource, getConfig, getEntitySpawnList, getHeightInGround, getHeightOnGround, getMaxY, getSeaLevel, populateBiomes, populateEntities, setStructureStartsprivate final Biome biome
private final PhantomSpawner phantomSpawner
private final CatSpawner catSpawner
private final FlatChunkGeneratorConfig generatorConfig
public FlatChunkGenerator(FlatChunkGeneratorConfig config)
@Environment(value=CLIENT) public ChunkGenerator create(long seed)
create in class ChunkGeneratorprivate Biome getBiome()
public void buildSurface(ChunkRegion region, Chunk chunk)
buildSurface in class ChunkGeneratorpublic int getSpawnHeight()
getSpawnHeight in class ChunkGeneratorprotected Biome getDecorationBiome(BiomeAccess biomeAccess, BlockPos pos)
getDecorationBiome in class ChunkGeneratorpublic boolean hasStructure(StructureFeature<?> feature)
hasStructure 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 ChunkGeneratorpublic void spawnEntities(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
spawnEntities in class ChunkGeneratorpublic boolean hasStructure(Biome biome, StructureFeature<? extends FeatureConfig> feature)
hasStructure in class ChunkGenerator@Nullable public <C extends FeatureConfig> C getStructureConfig(Biome biome, StructureFeature<C> feature)
getStructureConfig in class ChunkGenerator@Nullable public BlockPos locateStructure(ServerWorld world, String id, BlockPos center, int radius, boolean skipExistingChunks)
locateStructure in class ChunkGenerator