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
Modifier and TypeFieldDescriptionprotected BiomeSource
static com.mojang.serialization.Codec<ChunkGenerator>
private BaseStoneSource
protected BiomeSource
private StructureSettings
private long
-
Constructor Summary
ConstructorDescriptionChunkGenerator(BiomeSource p_62144_, BiomeSource p_62145_, StructureSettings p_62146_, long p_62147_)
ChunkGenerator(BiomeSource p_62149_, StructureSettings p_62150_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBiomeDecoration(WorldGenRegion p_62168_, StructureFeatureManager p_62169_)
void
applyCarvers(long p_62157_, BiomeManager p_62158_, ChunkAccess p_62159_, GenerationStep.Carving p_62160_)
abstract void
buildSurfaceAndBedrock(WorldGenRegion p_62170_, ChunkAccess p_62171_)
protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
protected Aquifer
createAquifer(ChunkAccess p_156162_)
void
createBiomes(Registry<Biome> p_62197_, ChunkAccess p_62198_)
void
createReferences(WorldGenLevel p_62178_, StructureFeatureManager p_62179_, ChunkAccess p_62180_)
private void
createStructure(ConfiguredStructureFeature<?,?> p_156164_, RegistryAccess p_156165_, StructureFeatureManager p_156166_, ChunkAccess p_156167_, StructureManager p_156168_, long p_156169_, Biome p_156170_)
void
createStructures(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 void
abstract NoiseColumn
getBaseColumn(int p_156150_, int p_156151_, LevelHeightAccessor p_156152_)
abstract int
getBaseHeight(int p_156153_, int p_156154_, Heightmap.Types p_156155_, LevelHeightAccessor p_156156_)
int
getFirstFreeHeight(int p_156175_, int p_156176_, Heightmap.Types p_156177_, LevelHeightAccessor p_156178_)
int
getFirstOccupiedHeight(int p_156180_, int p_156181_, Heightmap.Types p_156182_, LevelHeightAccessor p_156183_)
int
int
getMinY()
getMobsAt(Biome p_156158_, StructureFeatureManager p_156159_, MobCategory p_156160_, BlockPos p_156161_)
int
int
getSpawnHeight(LevelHeightAccessor p_156157_)
boolean
hasStronghold(ChunkPos p_62173_)
void
spawnOriginalMobs(WorldGenRegion p_62167_)
abstract ChunkGenerator
withSeed(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
-