public abstract class ChunkGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected BiomeProvider |
biomeSource |
static com.mojang.serialization.Codec<ChunkGenerator> |
CODEC |
protected BiomeProvider |
runtimeBiomeSource |
private DimensionStructuresSettings |
settings |
private java.util.List<ChunkPos> |
strongholdPositions |
private long |
strongholdSeed |
Constructor and Description |
---|
ChunkGenerator(BiomeProvider p_i231887_1_,
BiomeProvider p_i231887_2_,
DimensionStructuresSettings p_i231887_3_,
long p_i231887_4_) |
ChunkGenerator(BiomeProvider p_i231888_1_,
DimensionStructuresSettings p_i231888_2_) |
Modifier and Type | Method and Description |
---|---|
void |
applyBiomeDecoration(WorldGenRegion p_230351_1_,
StructureManager p_230351_2_) |
void |
applyCarvers(long p_230350_1_,
BiomeManager p_230350_3_,
IChunk p_230350_4_,
GenerationStage.Carving p_230350_5_) |
abstract void |
buildSurfaceAndBedrock(WorldGenRegion p_225551_1_,
IChunk p_225551_2_) |
protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator> |
codec() |
void |
createBiomes(Registry<Biome> p_242706_1_,
IChunk p_242706_2_) |
void |
createReferences(ISeedReader p_235953_1_,
StructureManager p_235953_2_,
IChunk p_235953_3_) |
private void |
createStructure(StructureFeature<?,?> p_242705_1_,
DynamicRegistries p_242705_2_,
StructureManager p_242705_3_,
IChunk p_242705_4_,
TemplateManager p_242705_5_,
long p_242705_6_,
ChunkPos p_242705_8_,
Biome p_242705_9_) |
void |
createStructures(DynamicRegistries p_242707_1_,
StructureManager p_242707_2_,
IChunk p_242707_3_,
TemplateManager p_242707_4_,
long p_242707_5_) |
abstract void |
fillFromNoise(IWorld p_230352_1_,
StructureManager p_230352_2_,
IChunk p_230352_3_) |
BlockPos |
findNearestMapFeature(ServerWorld p_235956_1_,
Structure<?> p_235956_2_,
BlockPos p_235956_3_,
int p_235956_4_,
boolean p_235956_5_) |
private void |
generateStrongholds() |
abstract IBlockReader |
getBaseColumn(int p_230348_1_,
int p_230348_2_) |
abstract int |
getBaseHeight(int p_222529_1_,
int p_222529_2_,
Heightmap.Type p_222529_3_) |
BiomeProvider |
getBiomeSource() |
int |
getFirstFreeHeight(int p_222532_1_,
int p_222532_2_,
Heightmap.Type p_222532_3_) |
int |
getFirstOccupiedHeight(int p_222531_1_,
int p_222531_2_,
Heightmap.Type p_222531_3_) |
int |
getGenDepth() |
java.util.List<MobSpawnInfo.Spawners> |
getMobsAt(Biome p_230353_1_,
StructureManager p_230353_2_,
EntityClassification p_230353_3_,
BlockPos p_230353_4_) |
int |
getSeaLevel() |
DimensionStructuresSettings |
getSettings() |
int |
getSpawnHeight() |
boolean |
hasStronghold(ChunkPos p_235952_1_) |
void |
spawnOriginalMobs(WorldGenRegion p_230354_1_) |
abstract ChunkGenerator |
withSeed(long p_230349_1_) |
public static final com.mojang.serialization.Codec<ChunkGenerator> CODEC
protected final BiomeProvider biomeSource
protected final BiomeProvider runtimeBiomeSource
private final DimensionStructuresSettings settings
private final long strongholdSeed
private final java.util.List<ChunkPos> strongholdPositions
public ChunkGenerator(BiomeProvider p_i231888_1_, DimensionStructuresSettings p_i231888_2_)
public ChunkGenerator(BiomeProvider p_i231887_1_, BiomeProvider p_i231887_2_, DimensionStructuresSettings p_i231887_3_, long p_i231887_4_)
private void generateStrongholds()
protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator> codec()
public abstract ChunkGenerator withSeed(long p_230349_1_)
public void applyCarvers(long p_230350_1_, BiomeManager p_230350_3_, IChunk p_230350_4_, GenerationStage.Carving p_230350_5_)
@Nullable public BlockPos findNearestMapFeature(ServerWorld p_235956_1_, Structure<?> p_235956_2_, BlockPos p_235956_3_, int p_235956_4_, boolean p_235956_5_)
public void applyBiomeDecoration(WorldGenRegion p_230351_1_, StructureManager p_230351_2_)
public abstract void buildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
public void spawnOriginalMobs(WorldGenRegion p_230354_1_)
public DimensionStructuresSettings getSettings()
public int getSpawnHeight()
public BiomeProvider getBiomeSource()
public int getGenDepth()
public java.util.List<MobSpawnInfo.Spawners> getMobsAt(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_)
public void createStructures(DynamicRegistries p_242707_1_, StructureManager p_242707_2_, IChunk p_242707_3_, TemplateManager p_242707_4_, long p_242707_5_)
private void createStructure(StructureFeature<?,?> p_242705_1_, DynamicRegistries p_242705_2_, StructureManager p_242705_3_, IChunk p_242705_4_, TemplateManager p_242705_5_, long p_242705_6_, ChunkPos p_242705_8_, Biome p_242705_9_)
public void createReferences(ISeedReader p_235953_1_, StructureManager p_235953_2_, IChunk p_235953_3_)
public abstract void fillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)
public int getSeaLevel()
public abstract int getBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)
public abstract IBlockReader getBaseColumn(int p_230348_1_, int p_230348_2_)
public int getFirstFreeHeight(int p_222532_1_, int p_222532_2_, Heightmap.Type p_222532_3_)
public int getFirstOccupiedHeight(int p_222531_1_, int p_222531_2_, Heightmap.Type p_222531_3_)
public boolean hasStronghold(ChunkPos p_235952_1_)