Class FlatLevelSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.FlatLevelSource
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FlatLevelSource>private final FlatLevelGeneratorSettingsFields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource, runtimeBiomeSource, structureOverrides, structureSets -
Constructor Summary
ConstructorsConstructorDescriptionFlatLevelSource(Registry<StructureSet> p_209099_, FlatLevelGeneratorSettings p_209100_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugScreenInfo(List<String> p_209102_, BlockPos p_209103_) adjustBiome(Holder<Biome> p_204553_) voidapplyCarvers(WorldGenRegion p_188547_, long p_188548_, BiomeManager p_188549_, StructureFeatureManager p_188550_, ChunkAccess p_188551_, GenerationStep.Carving p_188552_) voidbuildSurface(WorldGenRegion p_188554_, StructureFeatureManager p_188555_, ChunkAccess p_188556_) protected com.mojang.serialization.Codec<? extends ChunkGenerator>codec()fillFromNoise(Executor p_188562_, Blender p_188563_, StructureFeatureManager p_188564_, ChunkAccess p_188565_) getBaseColumn(int p_158270_, int p_158271_, LevelHeightAccessor p_158272_) intgetBaseHeight(int p_158274_, int p_158275_, Heightmap.Types p_158276_, LevelHeightAccessor p_158277_) intintgetMinY()intintgetSpawnHeight(LevelHeightAccessor p_158279_) settings()voidspawnOriginalMobs(WorldGenRegion p_188545_) withSeed(long p_64180_) Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
allConfigurations, applyBiomeDecoration, commonCodec, createBiomes, createReferences, createStructures, ensureStructuresGenerated, findNearestMapFeature, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getNoiseBiome, getRingPositionsFor, getTypeNameForDataFixer, hasFeatureChunkInRange, possibleStructureSets
-
Field Details
-
CODEC
-
settings
-
-
Constructor Details
-
FlatLevelSource
-
-
Method Details
-
codec
- Specified by:
codecin classChunkGenerator
-
withSeed
- Specified by:
withSeedin classChunkGenerator
-
settings
-
buildSurface
public void buildSurface(WorldGenRegion p_188554_, StructureFeatureManager p_188555_, ChunkAccess p_188556_) - Specified by:
buildSurfacein classChunkGenerator
-
getSpawnHeight
- Overrides:
getSpawnHeightin classChunkGenerator
-
adjustBiome
- Overrides:
adjustBiomein classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Executor p_188562_, Blender p_188563_, StructureFeatureManager p_188564_, ChunkAccess p_188565_) - Specified by:
fillFromNoisein classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int p_158274_, int p_158275_, Heightmap.Types p_158276_, LevelHeightAccessor p_158277_) - Specified by:
getBaseHeightin classChunkGenerator
-
getBaseColumn
- Specified by:
getBaseColumnin classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfoin classChunkGenerator
-
climateSampler
- Specified by:
climateSamplerin classChunkGenerator
-
applyCarvers
public void applyCarvers(WorldGenRegion p_188547_, long p_188548_, BiomeManager p_188549_, StructureFeatureManager p_188550_, ChunkAccess p_188551_, GenerationStep.Carving p_188552_) - Specified by:
applyCarversin classChunkGenerator
-
spawnOriginalMobs
- Specified by:
spawnOriginalMobsin classChunkGenerator
-
getMinY
public int getMinY()- Specified by:
getMinYin classChunkGenerator
-
getGenDepth
public int getGenDepth()- Specified by:
getGenDepthin classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin classChunkGenerator
-