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>
CODEC
private FlatGenerationSettings
settings
-
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 void
buildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
protected com.mojang.serialization.Codec<? extends ChunkGenerator>
codec()
void
fillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)
IBlockReader
getBaseColumn(int p_230348_1_, int p_230348_2_)
int
getBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)
int
getSpawnHeight()
FlatGenerationSettings
settings()
ChunkGenerator
withSeed(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:
codec
in classChunkGenerator
-
withSeed
public ChunkGenerator withSeed(long p_230349_1_)
- Specified by:
withSeed
in classChunkGenerator
-
settings
public FlatGenerationSettings settings()
-
buildSurfaceAndBedrock
public void buildSurfaceAndBedrock(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
- Specified by:
buildSurfaceAndBedrock
in classChunkGenerator
-
getSpawnHeight
public int getSpawnHeight()
- Overrides:
getSpawnHeight
in classChunkGenerator
-
fillFromNoise
public void fillFromNoise(IWorld p_230352_1_, StructureManager p_230352_2_, IChunk p_230352_3_)
- Specified by:
fillFromNoise
in classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)
- Specified by:
getBaseHeight
in classChunkGenerator
-
getBaseColumn
public IBlockReader getBaseColumn(int p_230348_1_, int p_230348_2_)
- Specified by:
getBaseColumn
in classChunkGenerator
-
-