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 |
field_24510 |
private PhantomSpawner |
phantomSpawner |
biomeSource| Constructor and Description |
|---|
FlatChunkGenerator(FlatChunkGeneratorConfig flatChunkGeneratorConfig) |
| 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) |
boolean |
hasStructure(StructureFeature<?> structureFeature) |
BlockPos |
locateStructure(ServerWorld serverWorld,
String id,
BlockPos center,
int radius,
boolean skipExistingChunks) |
ChunkGenerator |
method_27997(long long2) |
void |
populateNoise(WorldAccess world,
StructureAccessor structureAccessor,
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 field_24510
public FlatChunkGenerator(FlatChunkGeneratorConfig flatChunkGeneratorConfig)
@Environment(value=CLIENT) public ChunkGenerator method_27997(long long2)
method_27997 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<?> structureFeature)
hasStructure in class ChunkGeneratorpublic void populateNoise(WorldAccess world, StructureAccessor structureAccessor, 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> structureFeature)
getStructureConfig in class ChunkGenerator@Nullable public BlockPos locateStructure(ServerWorld serverWorld, String id, BlockPos center, int radius, boolean skipExistingChunks)
locateStructure in class ChunkGenerator