Package net.minecraft.world.gen
Class FlatChunkGenerator
- java.lang.Object
-
- net.minecraft.world.gen.ChunkGenerator
-
- net.minecraft.world.gen.FlatChunkGenerator
-
public class FlatChunkGenerator extends ChunkGenerator
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<FlatChunkGenerator>CODECprivate FlatGenerationSettingssettings-
Fields inherited from class net.minecraft.world.gen.ChunkGenerator
biomeSource, runtimeBiomeSource
-
-
Constructor Summary
Constructors Constructor Description FlatChunkGenerator(FlatGenerationSettings p_i231902_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)protected com.mojang.serialization.Codec<? extends ChunkGenerator>codec()voidfillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)IBlockReadergetBaseColumn(int p_230348_1_, int p_230348_2_)intgetBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)intgetSpawnHeight()FlatGenerationSettingssettings()ChunkGeneratorwithSeed(long p_230349_1_)-
Methods inherited from class net.minecraft.world.gen.ChunkGenerator
applyBiomeDecoration, applyCarvers, createBiomes, createReferences, createStructures, findNearestMapFeature, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getGenDepth, getMobsAt, getSeaLevel, getSettings, hasStronghold, spawnOriginalMobs
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<FlatChunkGenerator> CODEC
-
settings
private final FlatGenerationSettings settings
-
-
Constructor Detail
-
FlatChunkGenerator
public FlatChunkGenerator(FlatGenerationSettings p_i231902_1_)
-
-
Method Detail
-
codec
protected com.mojang.serialization.Codec<? extends ChunkGenerator> codec()
- Specified by:
codecin classChunkGenerator
-
withSeed
public ChunkGenerator withSeed(long p_230349_1_)
- Specified by:
withSeedin classChunkGenerator
-
settings
public FlatGenerationSettings settings()
-
buildSurfaceAndBedrock
public void buildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
- Specified by:
buildSurfaceAndBedrockin classChunkGenerator
-
getSpawnHeight
public int getSpawnHeight()
- Overrides:
getSpawnHeightin classChunkGenerator
-
fillFromNoise
public void fillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)
- Specified by:
fillFromNoisein classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)- Specified by:
getBaseHeightin classChunkGenerator
-
getBaseColumn
public IBlockReader getBaseColumn(int p_230348_1_, int p_230348_2_)
- Specified by:
getBaseColumnin classChunkGenerator
-
-