Class FlatLevelSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.FlatLevelSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FlatLevelSource> private final FlatLevelGeneratorSettingsFields inherited from class ChunkGenerator
biomeSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugScreenInfo(List<String> result, RandomState randomState, BlockPos feetPos) voidapplyCarvers(WorldGenRegion region, long seed, RandomState randomState, BiomeManager biomeManager, StructureManager structureManager, ChunkAccess chunk) voidbuildSurface(WorldGenRegion level, StructureManager structureManager, RandomState randomState, ChunkAccess protoChunk) protected com.mojang.serialization.MapCodec<? extends ChunkGenerator> codec()createState(HolderLookup<StructureSet> structureSets, RandomState randomState, long levelSeed) fillFromNoise(Blender blender, RandomState randomState, StructureManager structureManager, ChunkAccess centerChunk) getBaseColumn(int x, int z, LevelHeightAccessor heightAccessor, RandomState randomState) intgetBaseHeight(int x, int z, Heightmap.Types type, LevelHeightAccessor heightAccessor, RandomState randomState) intintgetMinY()intintgetSpawnHeight(LevelHeightAccessor heightAccessor) settings()voidspawnOriginalMobs(WorldGenRegion worldGenRegion)
-
Field Details
-
CODEC
-
settings
-
-
Constructor Details
-
FlatLevelSource
-
-
Method Details
-
createState
public ChunkGeneratorStructureState createState(HolderLookup<StructureSet> structureSets, RandomState randomState, long levelSeed) - Overrides:
createStatein classChunkGenerator
-
codec
- Specified by:
codecin classChunkGenerator
-
settings
-
buildSurface
public void buildSurface(WorldGenRegion level, StructureManager structureManager, RandomState randomState, ChunkAccess protoChunk) - Specified by:
buildSurfacein classChunkGenerator
-
getSpawnHeight
- Overrides:
getSpawnHeightin classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Blender blender, RandomState randomState, StructureManager structureManager, ChunkAccess centerChunk) - Specified by:
fillFromNoisein classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int x, int z, Heightmap.Types type, LevelHeightAccessor heightAccessor, RandomState randomState) - Specified by:
getBaseHeightin classChunkGenerator
-
getBaseColumn
public NoiseColumn getBaseColumn(int x, int z, LevelHeightAccessor heightAccessor, RandomState randomState) - Specified by:
getBaseColumnin classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfoin classChunkGenerator
-
applyCarvers
public void applyCarvers(WorldGenRegion region, long seed, RandomState randomState, BiomeManager biomeManager, StructureManager structureManager, ChunkAccess chunk) - 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
-