Package net.minecraft.world.gen.chunk
Class DebugChunkGenerator
java.lang.Object
net.minecraft.world.gen.chunk.ChunkGenerator
net.minecraft.world.gen.chunk.DebugChunkGenerator
public class DebugChunkGenerator extends ChunkGenerator
-
Field Summary
Fields Modifier and Type Field Description protected static BlockStateAIRprotected static BlockStateBARRIERprivate Registry<Biome>biomeRegistryprivate static List<BlockState>BLOCK_STATESstatic com.mojang.serialization.Codec<DebugChunkGenerator>CODECprivate static intX_SIDE_LENGTHprivate static intZ_SIDE_LENGTHFields inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
biomeSource, populationSource -
Constructor Summary
Constructors Constructor Description DebugChunkGenerator(Registry<Biome> biomeRegistry) -
Method Summary
Modifier and Type Method Description voidbuildSurface(ChunkRegion region, Chunk chunk)voidcarve(long seed, BiomeAccess access, Chunk chunk, GenerationStep.Carver carver)voidgenerateFeatures(ChunkRegion region, StructureAccessor accessor)Registry<Biome>getBiomeRegistry()static BlockStategetBlockState(int x, int z)protected com.mojang.serialization.Codec<? extends ChunkGenerator>getCodec()VerticalBlockSamplegetColumnSample(int x, int z)intgetHeight(int x, int z, Heightmap.Type heightmapType)voidpopulateNoise(WorldAccess world, StructureAccessor accessor, Chunk chunk)Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.ChunkGeneratorwithSeed(long seed)Methods inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
addStructureReferences, getBiomeSource, getEntitySpawnList, getHeightInGround, getHeightOnGround, getSeaLevel, getSpawnHeight, getStructuresConfig, getWorldHeight, isStrongholdStartingChunk, locateStructure, populateBiomes, populateEntities, setStructureStarts
-
Field Details
-
CODEC
-
BLOCK_STATES
-
X_SIDE_LENGTH
private static final int X_SIDE_LENGTH -
Z_SIDE_LENGTH
private static final int Z_SIDE_LENGTH -
AIR
-
BARRIER
-
biomeRegistry
-
-
Constructor Details
-
DebugChunkGenerator
-
-
Method Details
-
getBiomeRegistry
-
getCodec
- Specified by:
getCodecin classChunkGenerator
-
withSeed
- Specified by:
withSeedin classChunkGenerator
-
buildSurface
- Specified by:
buildSurfacein classChunkGenerator
-
carve
- Overrides:
carvein classChunkGenerator
-
generateFeatures
- Overrides:
generateFeaturesin classChunkGenerator
-
populateNoise
Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.- Specified by:
populateNoisein classChunkGenerator
-
getHeight
- Specified by:
getHeightin classChunkGenerator
-
getColumnSample
- Specified by:
getColumnSamplein classChunkGenerator
-
getBlockState
-