Class FlatLevelSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.FlatLevelSource
-
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, structureOverrides, structureSets
-
Constructor Summary
ConstructorDescriptionFlatLevelSource
(Registry<StructureSet> p_209099_, FlatLevelGeneratorSettings p_209100_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugScreenInfo
(List<String> p_224179_, RandomState p_224180_, BlockPos p_224181_) void
applyCarvers
(WorldGenRegion p_224166_, long p_224167_, RandomState p_224168_, BiomeManager p_224169_, StructureManager p_224170_, ChunkAccess p_224171_, GenerationStep.Carving p_224172_) void
buildSurface
(WorldGenRegion p_224174_, StructureManager p_224175_, RandomState p_224176_, ChunkAccess p_224177_) protected com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
fillFromNoise
(Executor p_224183_, Blender p_224184_, RandomState p_224185_, StructureManager p_224186_, ChunkAccess p_224187_) getBaseColumn
(int p_224155_, int p_224156_, LevelHeightAccessor p_224157_, RandomState p_224158_) int
getBaseHeight
(int p_224160_, int p_224161_, Heightmap.Types p_224162_, LevelHeightAccessor p_224163_, RandomState p_224164_) int
int
getMinY()
int
int
getSpawnHeight
(LevelHeightAccessor p_158279_) settings()
void
spawnOriginalMobs
(WorldGenRegion p_188545_) Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
applyBiomeDecoration, commonCodec, createBiomes, createReferences, createStructures, ensureStructuresGenerated, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getRingPositionsFor, getTypeNameForDataFixer, hasStructureChunkInRange, possibleStructureSets
-
Field Details
-
CODEC
-
settings
-
-
Constructor Details
-
FlatLevelSource
-
-
Method Details
-
codec
- Specified by:
codec
in classChunkGenerator
-
settings
-
buildSurface
public void buildSurface(WorldGenRegion p_224174_, StructureManager p_224175_, RandomState p_224176_, ChunkAccess p_224177_) - Specified by:
buildSurface
in classChunkGenerator
-
getSpawnHeight
- Overrides:
getSpawnHeight
in classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Executor p_224183_, Blender p_224184_, RandomState p_224185_, StructureManager p_224186_, ChunkAccess p_224187_) - Specified by:
fillFromNoise
in classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int p_224160_, int p_224161_, Heightmap.Types p_224162_, LevelHeightAccessor p_224163_, RandomState p_224164_) - Specified by:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
public NoiseColumn getBaseColumn(int p_224155_, int p_224156_, LevelHeightAccessor p_224157_, RandomState p_224158_) - Specified by:
getBaseColumn
in classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfo
in classChunkGenerator
-
applyCarvers
public void applyCarvers(WorldGenRegion p_224166_, long p_224167_, RandomState p_224168_, BiomeManager p_224169_, StructureManager p_224170_, ChunkAccess p_224171_, GenerationStep.Carving p_224172_) - 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
-