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