Package net.minecraft.world.level.chunk
Class ChunkGenerator
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
- Direct Known Subclasses:
DebugLevelSource,FlatLevelSource,NoiseBasedChunkGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiomeSourcestatic com.mojang.serialization.Codec<ChunkGenerator>private BaseStoneSourceprotected BiomeSourceprivate StructureSettingsprivate long -
Constructor Summary
ConstructorsConstructorDescriptionChunkGenerator(BiomeSource p_62144_, BiomeSource p_62145_, StructureSettings p_62146_, long p_62147_)ChunkGenerator(BiomeSource p_62149_, StructureSettings p_62150_) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBiomeDecoration(WorldGenRegion p_62168_, StructureFeatureManager p_62169_)voidapplyCarvers(long p_62157_, BiomeManager p_62158_, ChunkAccess p_62159_, GenerationStep.Carving p_62160_)abstract voidbuildSurfaceAndBedrock(WorldGenRegion p_62170_, ChunkAccess p_62171_)protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator>codec()protected AquifercreateAquifer(ChunkAccess p_156162_)voidcreateBiomes(Registry<Biome> p_62197_, ChunkAccess p_62198_)voidcreateReferences(WorldGenLevel p_62178_, StructureFeatureManager p_62179_, ChunkAccess p_62180_)private voidcreateStructure(ConfiguredStructureFeature<?,?> p_156164_, RegistryAccess p_156165_, StructureFeatureManager p_156166_, ChunkAccess p_156167_, StructureManager p_156168_, long p_156169_, Biome p_156170_)voidcreateStructures(RegistryAccess p_62200_, StructureFeatureManager p_62201_, ChunkAccess p_62202_, StructureManager p_62203_, long p_62204_)abstract CompletableFuture<ChunkAccess>fillFromNoise(Executor p_156171_, StructureFeatureManager p_156172_, ChunkAccess p_156173_)findNearestMapFeature(ServerLevel p_62162_, StructureFeature<?> p_62163_, BlockPos p_62164_, int p_62165_, boolean p_62166_)private voidabstract NoiseColumngetBaseColumn(int p_156150_, int p_156151_, LevelHeightAccessor p_156152_)abstract intgetBaseHeight(int p_156153_, int p_156154_, Heightmap.Types p_156155_, LevelHeightAccessor p_156156_)intgetFirstFreeHeight(int p_156175_, int p_156176_, Heightmap.Types p_156177_, LevelHeightAccessor p_156178_)intgetFirstOccupiedHeight(int p_156180_, int p_156181_, Heightmap.Types p_156182_, LevelHeightAccessor p_156183_)intintgetMinY()getMobsAt(Biome p_156158_, StructureFeatureManager p_156159_, MobCategory p_156160_, BlockPos p_156161_)intintgetSpawnHeight(LevelHeightAccessor p_156157_)booleanhasStronghold(ChunkPos p_62173_)voidspawnOriginalMobs(WorldGenRegion p_62167_)abstract ChunkGeneratorwithSeed(long p_62156_)
-
Field Details
-
CODEC
-
biomeSource
-
runtimeBiomeSource
-
settings
-
strongholdSeed
private final long strongholdSeed -
strongholdPositions
-
defaultBaseStoneSource
-
-
Constructor Details
-
ChunkGenerator
-
ChunkGenerator
public ChunkGenerator(BiomeSource p_62144_, BiomeSource p_62145_, StructureSettings p_62146_, long p_62147_)
-
-
Method Details
-
generateStrongholds
private void generateStrongholds() -
codec
-
withSeed
-
createBiomes
-
applyCarvers
public void applyCarvers(long p_62157_, BiomeManager p_62158_, ChunkAccess p_62159_, GenerationStep.Carving p_62160_) -
createAquifer
-
findNearestMapFeature
@Nullable public BlockPos findNearestMapFeature(ServerLevel p_62162_, StructureFeature<?> p_62163_, BlockPos p_62164_, int p_62165_, boolean p_62166_) -
applyBiomeDecoration
-
buildSurfaceAndBedrock
-
spawnOriginalMobs
-
getSettings
-
getSpawnHeight
-
getBiomeSource
-
getGenDepth
public int getGenDepth() -
getMobsAt
public WeightedRandomList<MobSpawnSettings.SpawnerData> getMobsAt(Biome p_156158_, StructureFeatureManager p_156159_, MobCategory p_156160_, BlockPos p_156161_) -
createStructures
public void createStructures(RegistryAccess p_62200_, StructureFeatureManager p_62201_, ChunkAccess p_62202_, StructureManager p_62203_, long p_62204_) -
createStructure
private void createStructure(ConfiguredStructureFeature<?,?> p_156164_, RegistryAccess p_156165_, StructureFeatureManager p_156166_, ChunkAccess p_156167_, StructureManager p_156168_, long p_156169_, Biome p_156170_) -
createReferences
public void createReferences(WorldGenLevel p_62178_, StructureFeatureManager p_62179_, ChunkAccess p_62180_) -
fillFromNoise
public abstract CompletableFuture<ChunkAccess> fillFromNoise(Executor p_156171_, StructureFeatureManager p_156172_, ChunkAccess p_156173_) -
getSeaLevel
public int getSeaLevel() -
getMinY
public int getMinY() -
getBaseHeight
public abstract int getBaseHeight(int p_156153_, int p_156154_, Heightmap.Types p_156155_, LevelHeightAccessor p_156156_) -
getBaseColumn
public abstract NoiseColumn getBaseColumn(int p_156150_, int p_156151_, LevelHeightAccessor p_156152_) -
getFirstFreeHeight
public int getFirstFreeHeight(int p_156175_, int p_156176_, Heightmap.Types p_156177_, LevelHeightAccessor p_156178_) -
getFirstOccupiedHeight
public int getFirstOccupiedHeight(int p_156180_, int p_156181_, Heightmap.Types p_156182_, LevelHeightAccessor p_156183_) -
hasStronghold
-
getBaseStoneSource
-