Class FlatLevelSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.FlatLevelSource
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FlatLevelSource>
private final FlatLevelGeneratorSettings
Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource, runtimeBiomeSource, structureOverrides, structureSets
-
Constructor Summary
ConstructorDescriptionFlatLevelSource
(Registry<StructureSet> p_209099_, FlatLevelGeneratorSettings p_209100_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugScreenInfo
(List<String> p_209102_, BlockPos p_209103_) adjustBiome
(Holder<Biome> p_204553_) void
applyCarvers
(WorldGenRegion p_188547_, long p_188548_, BiomeManager p_188549_, StructureFeatureManager p_188550_, ChunkAccess p_188551_, GenerationStep.Carving p_188552_) void
buildSurface
(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_) int
getBaseHeight
(int p_158274_, int p_158275_, Heightmap.Types p_158276_, LevelHeightAccessor p_158277_) int
int
getMinY()
int
int
getSpawnHeight
(LevelHeightAccessor p_158279_) settings()
void
spawnOriginalMobs
(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:
codec
in classChunkGenerator
-
withSeed
- Specified by:
withSeed
in classChunkGenerator
-
settings
-
buildSurface
public void buildSurface(WorldGenRegion p_188554_, StructureFeatureManager p_188555_, ChunkAccess p_188556_) - Specified by:
buildSurface
in classChunkGenerator
-
getSpawnHeight
- Overrides:
getSpawnHeight
in classChunkGenerator
-
adjustBiome
- Overrides:
adjustBiome
in classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Executor p_188562_, Blender p_188563_, StructureFeatureManager p_188564_, ChunkAccess p_188565_) - Specified by:
fillFromNoise
in classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int p_158274_, int p_158275_, Heightmap.Types p_158276_, LevelHeightAccessor p_158277_) - Specified by:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
- Specified by:
getBaseColumn
in classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfo
in classChunkGenerator
-
climateSampler
- Specified by:
climateSampler
in 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:
applyCarvers
in classChunkGenerator
-
spawnOriginalMobs
- Specified by:
spawnOriginalMobs
in classChunkGenerator
-
getMinY
public int getMinY()- Specified by:
getMinY
in classChunkGenerator
-
getGenDepth
public int getGenDepth()- Specified by:
getGenDepth
in classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in classChunkGenerator
-