public class DebugChunkGenerator extends ChunkGenerator
| Modifier and Type | Field and Description |
|---|---|
protected static BlockState |
AIR |
protected static BlockState |
BARRIER |
private Registry<Biome> |
biomeRegistry |
private static List<BlockState> |
BLOCK_STATES |
static com.mojang.serialization.Codec<DebugChunkGenerator> |
CODEC |
private static int |
X_SIDE_LENGTH |
private static int |
Z_SIDE_LENGTH |
biomeSource, populationSource| Constructor and Description |
|---|
DebugChunkGenerator(Registry<Biome> biomeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildSurface(ChunkRegion region,
Chunk chunk) |
void |
carve(long seed,
BiomeAccess access,
Chunk chunk,
GenerationStep.Carver carver) |
void |
generateFeatures(ChunkRegion region,
StructureAccessor accessor) |
Registry<Biome> |
getBiomeRegistry() |
static BlockState |
getBlockState(int x,
int z) |
protected com.mojang.serialization.Codec<? extends ChunkGenerator> |
getCodec() |
BlockView |
getColumnSample(int x,
int z) |
int |
getHeight(int x,
int z,
Heightmap.Type heightmapType) |
void |
populateNoise(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.
|
ChunkGenerator |
withSeed(long seed) |
addStructureReferences, getBiomeSource, getEntitySpawnList, getHeightInGround, getHeightOnGround, getSeaLevel, getSpawnHeight, getStructuresConfig, getWorldHeight, isStrongholdStartingChunk, locateStructure, populateBiomes, populateEntities, setStructureStartspublic static final com.mojang.serialization.Codec<DebugChunkGenerator> CODEC
private static final List<BlockState> BLOCK_STATES
private static final int X_SIDE_LENGTH
private static final int Z_SIDE_LENGTH
protected static final BlockState AIR
protected static final BlockState BARRIER
protected com.mojang.serialization.Codec<? extends ChunkGenerator> getCodec()
getCodec in class ChunkGenerator@Environment(value=CLIENT) public ChunkGenerator withSeed(long seed)
withSeed in class ChunkGeneratorpublic void buildSurface(ChunkRegion region, Chunk chunk)
buildSurface in class ChunkGeneratorpublic void carve(long seed,
BiomeAccess access,
Chunk chunk,
GenerationStep.Carver carver)
carve in class ChunkGeneratorpublic void generateFeatures(ChunkRegion region, StructureAccessor accessor)
generateFeatures in class ChunkGeneratorpublic void populateNoise(WorldAccess world, StructureAccessor accessor, Chunk chunk)
populateNoise in class ChunkGeneratorpublic int getHeight(int x,
int z,
Heightmap.Type heightmapType)
getHeight in class ChunkGeneratorpublic BlockView getColumnSample(int x, int z)
getColumnSample in class ChunkGeneratorpublic static BlockState getBlockState(int x, int z)