Package net.minecraft.world.gen
Class ChunkGenerator
java.lang.Object
net.minecraft.world.gen.ChunkGenerator
- Direct Known Subclasses:
DebugChunkGenerator
,FlatChunkGenerator
,NoiseChunkGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BiomeProvider
static final com.mojang.serialization.Codec<ChunkGenerator>
protected final BiomeProvider
private final DimensionStructuresSettings
private final long
-
Constructor Summary
ConstructorDescriptionChunkGenerator
(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_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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_) findNearestMapFeature
(ServerWorld p_235956_1_, Structure<?> p_235956_2_, BlockPos p_235956_3_, int p_235956_4_, boolean p_235956_5_) private void
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_) 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
getMobsAt
(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_) int
int
boolean
hasStronghold
(ChunkPos p_235952_1_) void
spawnOriginalMobs
(WorldGenRegion p_230354_1_) abstract ChunkGenerator
withSeed
(long p_230349_1_)
-
Field Details
-
CODEC
-
biomeSource
-
runtimeBiomeSource
-
settings
-
strongholdSeed
private final long strongholdSeed -
strongholdPositions
-
-
Constructor Details
-
ChunkGenerator
-
ChunkGenerator
public ChunkGenerator(BiomeProvider p_i231887_1_, BiomeProvider p_i231887_2_, DimensionStructuresSettings p_i231887_3_, long p_i231887_4_)
-
-
Method Details
-
generateStrongholds
private void generateStrongholds() -
codec
-
withSeed
-
createBiomes
-
applyCarvers
public void applyCarvers(long p_230350_1_, BiomeManager p_230350_3_, IChunk p_230350_4_, GenerationStage.Carving p_230350_5_) -
findNearestMapFeature
@Nullable public BlockPos findNearestMapFeature(ServerWorld p_235956_1_, Structure<?> p_235956_2_, BlockPos p_235956_3_, int p_235956_4_, boolean p_235956_5_) -
applyBiomeDecoration
-
buildSurfaceAndBedrock
-
spawnOriginalMobs
-
getSettings
-
getSpawnHeight
public int getSpawnHeight() -
getBiomeSource
-
getGenDepth
public int getGenDepth() -
getMobsAt
public List<MobSpawnInfo.Spawners> getMobsAt(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_) -
createStructures
public void createStructures(DynamicRegistries p_242707_1_, StructureManager p_242707_2_, IChunk p_242707_3_, TemplateManager p_242707_4_, long p_242707_5_) -
createStructure
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_) -
createReferences
public void createReferences(ISeedReader p_235953_1_, StructureManager p_235953_2_, IChunk p_235953_3_) -
fillFromNoise
public abstract void fillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_) -
getSeaLevel
public int getSeaLevel() -
getBaseHeight
-
getBaseColumn
-
getFirstFreeHeight
-
getFirstOccupiedHeight
-
hasStronghold
-