Package net.minecraft.world.gen
Class ChunkGenerator
- java.lang.Object
-
- net.minecraft.world.gen.ChunkGenerator
-
- Direct Known Subclasses:
DebugChunkGenerator
,FlatChunkGenerator
,NoiseChunkGenerator
public abstract class ChunkGenerator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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_)
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<ChunkGenerator> CODEC
-
biomeSource
protected final BiomeProvider biomeSource
-
runtimeBiomeSource
protected final BiomeProvider runtimeBiomeSource
-
settings
private final DimensionStructuresSettings settings
-
strongholdSeed
private final long strongholdSeed
-
strongholdPositions
private final java.util.List<ChunkPos> strongholdPositions
-
-
Constructor Detail
-
ChunkGenerator
public ChunkGenerator(BiomeProvider p_i231888_1_, DimensionStructuresSettings p_i231888_2_)
-
ChunkGenerator
public ChunkGenerator(BiomeProvider p_i231887_1_, BiomeProvider p_i231887_2_, DimensionStructuresSettings p_i231887_3_, long p_i231887_4_)
-
-
Method Detail
-
generateStrongholds
private void generateStrongholds()
-
codec
protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator> codec()
-
withSeed
public abstract ChunkGenerator withSeed(long p_230349_1_)
-
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
public void applyBiomeDecoration(WorldGenRegion p_230351_1_, StructureManager p_230351_2_)
-
buildSurfaceAndBedrock
public abstract void buildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
-
spawnOriginalMobs
public void spawnOriginalMobs(WorldGenRegion p_230354_1_)
-
getSettings
public DimensionStructuresSettings getSettings()
-
getSpawnHeight
public int getSpawnHeight()
-
getBiomeSource
public BiomeProvider getBiomeSource()
-
getGenDepth
public int getGenDepth()
-
getMobsAt
public java.util.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
public abstract int getBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)
-
getBaseColumn
public abstract IBlockReader getBaseColumn(int p_230348_1_, int p_230348_2_)
-
getFirstFreeHeight
public int getFirstFreeHeight(int p_222532_1_, int p_222532_2_, Heightmap.Type p_222532_3_)
-
getFirstOccupiedHeight
public int getFirstOccupiedHeight(int p_222531_1_, int p_222531_2_, Heightmap.Type p_222531_3_)
-
hasStronghold
public boolean hasStronghold(ChunkPos p_235952_1_)
-
-