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 BiomeProviderbiomeSourcestatic com.mojang.serialization.Codec<ChunkGenerator>CODECprotected BiomeProviderruntimeBiomeSourceprivate DimensionStructuresSettingssettingsprivate java.util.List<ChunkPos>strongholdPositionsprivate longstrongholdSeed
-
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 voidapplyBiomeDecoration(WorldGenRegion p_230351_1_, StructureManager p_230351_2_)voidapplyCarvers(long p_230350_1_, BiomeManager p_230350_3_, IChunk p_230350_4_, GenerationStage.Carving p_230350_5_)abstract voidbuildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator>codec()voidcreateBiomes(Registry<Biome> p_242706_1_, IChunk p_242706_2_)voidcreateReferences(ISeedReader p_235953_1_, StructureManager p_235953_2_, IChunk p_235953_3_)private voidcreateStructure(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_)voidcreateStructures(DynamicRegistries p_242707_1_, StructureManager p_242707_2_, IChunk p_242707_3_, TemplateManager p_242707_4_, long p_242707_5_)abstract voidfillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)BlockPosfindNearestMapFeature(ServerWorld p_235956_1_, Structure<?> p_235956_2_, BlockPos p_235956_3_, int p_235956_4_, boolean p_235956_5_)private voidgenerateStrongholds()abstract IBlockReadergetBaseColumn(int p_230348_1_, int p_230348_2_)abstract intgetBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)BiomeProvidergetBiomeSource()intgetFirstFreeHeight(int p_222532_1_, int p_222532_2_, Heightmap.Type p_222532_3_)intgetFirstOccupiedHeight(int p_222531_1_, int p_222531_2_, Heightmap.Type p_222531_3_)intgetGenDepth()java.util.List<MobSpawnInfo.Spawners>getMobsAt(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_)intgetSeaLevel()DimensionStructuresSettingsgetSettings()intgetSpawnHeight()booleanhasStronghold(ChunkPos p_235952_1_)voidspawnOriginalMobs(WorldGenRegion p_230354_1_)abstract ChunkGeneratorwithSeed(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_)
-
-