public abstract class ChunkGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BiomeSource |
biomeSource |
private ChunkGeneratorConfig |
config |
| Constructor and Description |
|---|
ChunkGenerator(BiomeSource biomeSource,
ChunkGeneratorConfig chunkGeneratorConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStructureReferences(IWorld world,
StructureAccessor structureAccessor,
Chunk chunk) |
abstract void |
buildSurface(ChunkRegion region,
Chunk chunk) |
void |
carve(long long2,
BiomeAccess biomeAccess,
Chunk chunk,
GenerationStep.Carver carver) |
void |
generateFeatures(ChunkRegion chunkRegion,
StructureAccessor structureAccessor) |
BiomeSource |
getBiomeSource() |
abstract BlockView |
getColumnSample(int x,
int z) |
ChunkGeneratorConfig |
getConfig() |
protected Biome |
getDecorationBiome(BiomeAccess biomeAccess,
BlockPos pos) |
List<Biome.SpawnEntry> |
getEntitySpawnList(Biome biome,
StructureAccessor structureAccessor,
SpawnGroup spawnGroup,
BlockPos blockPos) |
abstract int |
getHeight(int x,
int z,
Heightmap.Type heightmapType) |
int |
getHeightInGround(int x,
int z,
Heightmap.Type heightmapType) |
int |
getHeightOnGround(int x,
int z,
Heightmap.Type heightmapType) |
int |
getMaxY() |
int |
getSeaLevel() |
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) |
abstract ChunkGenerator |
method_27997(long long2) |
void |
populateBiomes(Chunk chunk) |
void |
populateEntities(ChunkRegion region) |
abstract void |
populateNoise(IWorld 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 |
setStructureStarts(StructureAccessor structureAccessor,
BiomeAccess biomeAccess,
Chunk chunk,
ChunkGenerator chunkGenerator,
StructureManager structureManager,
long long2) |
void |
spawnEntities(ServerWorld world,
boolean spawnMonsters,
boolean spawnAnimals) |
protected final BiomeSource biomeSource
private final ChunkGeneratorConfig config
public ChunkGenerator(BiomeSource biomeSource, ChunkGeneratorConfig chunkGeneratorConfig)
@Environment(value=CLIENT) public abstract ChunkGenerator method_27997(long long2)
public void populateBiomes(Chunk chunk)
protected Biome getDecorationBiome(BiomeAccess biomeAccess, BlockPos pos)
public void carve(long long2,
BiomeAccess biomeAccess,
Chunk chunk,
GenerationStep.Carver carver)
@Nullable public BlockPos locateStructure(ServerWorld serverWorld, String id, BlockPos center, int radius, boolean skipExistingChunks)
public void generateFeatures(ChunkRegion chunkRegion, StructureAccessor structureAccessor)
public abstract void buildSurface(ChunkRegion region, Chunk chunk)
public void populateEntities(ChunkRegion region)
public ChunkGeneratorConfig getConfig()
public int getSpawnHeight()
public void spawnEntities(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
public boolean hasStructure(Biome biome, StructureFeature<? extends FeatureConfig> feature)
@Nullable public <C extends FeatureConfig> C getStructureConfig(Biome biome, StructureFeature<C> structureFeature)
public BiomeSource getBiomeSource()
public int getMaxY()
public List<Biome.SpawnEntry> getEntitySpawnList(Biome biome, StructureAccessor structureAccessor, SpawnGroup spawnGroup, BlockPos blockPos)
public void setStructureStarts(StructureAccessor structureAccessor, BiomeAccess biomeAccess, Chunk chunk, ChunkGenerator chunkGenerator, StructureManager structureManager, long long2)
public boolean hasStructure(StructureFeature<?> structureFeature)
public void addStructureReferences(IWorld world, StructureAccessor structureAccessor, Chunk chunk)
public abstract void populateNoise(IWorld world, StructureAccessor structureAccessor, Chunk chunk)
public int getSeaLevel()
public abstract int getHeight(int x,
int z,
Heightmap.Type heightmapType)
public abstract BlockView getColumnSample(int x, int z)
public int getHeightOnGround(int x,
int z,
Heightmap.Type heightmapType)
public int getHeightInGround(int x,
int z,
Heightmap.Type heightmapType)