Class DebugLevelSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.DebugLevelSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final BlockState
private static List
<BlockState> A list of all valid block states.protected static final BlockState
static final int
private static final int
static final com.mojang.serialization.MapCodec
<DebugLevelSource> private static int
private static int
static final int
Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugScreenInfo
(List<String> pInfo, RandomState pRandom, BlockPos pPos) void
applyBiomeDecoration
(WorldGenLevel pLevel, ChunkAccess pChunk, StructureManager pStructureManager) void
applyCarvers
(WorldGenRegion pLevel, long pSeed, RandomState pRandom, BiomeManager pBiomeManager, StructureManager pStructureManager, ChunkAccess pChunk, GenerationStep.Carving pStep) void
buildSurface
(WorldGenRegion pLevel, StructureManager pStructureManager, RandomState pRandom, ChunkAccess pChunk) protected com.mojang.serialization.MapCodec
<? extends ChunkGenerator> codec()
fillFromNoise
(Blender pBlender, RandomState pRandomState, StructureManager pStructureManager, ChunkAccess pChunk) getBaseColumn
(int pX, int pZ, LevelHeightAccessor pHeight, RandomState pRandom) int
getBaseHeight
(int pX, int pZ, Heightmap.Types pType, LevelHeightAccessor pLevel, RandomState pRandom) static BlockState
getBlockStateFor
(int pChunkX, int pChunkZ) int
int
getMinY()
int
static void
void
spawnOriginalMobs
(WorldGenRegion pLevel) Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
createBiomes, createReferences, createState, createStructures, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getSpawnHeight, getTypeNameForDataFixer, refreshFeaturesPerStep, validate
-
Field Details
-
CODEC
-
BLOCK_MARGIN
private static final int BLOCK_MARGIN- See Also:
-
ALL_BLOCKS
A list of all valid block states. -
GRID_WIDTH
private static int GRID_WIDTH -
GRID_HEIGHT
private static int GRID_HEIGHT -
AIR
-
BARRIER
-
HEIGHT
public static final int HEIGHT- See Also:
-
BARRIER_HEIGHT
public static final int BARRIER_HEIGHT- See Also:
-
-
Constructor Details
-
DebugLevelSource
-
-
Method Details
-
codec
- Specified by:
codec
in classChunkGenerator
-
buildSurface
public void buildSurface(WorldGenRegion pLevel, StructureManager pStructureManager, RandomState pRandom, ChunkAccess pChunk) - Specified by:
buildSurface
in classChunkGenerator
-
applyBiomeDecoration
public void applyBiomeDecoration(WorldGenLevel pLevel, ChunkAccess pChunk, StructureManager pStructureManager) - Overrides:
applyBiomeDecoration
in classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Blender pBlender, RandomState pRandomState, StructureManager pStructureManager, ChunkAccess pChunk) - Specified by:
fillFromNoise
in classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int pX, int pZ, Heightmap.Types pType, LevelHeightAccessor pLevel, RandomState pRandom) - Specified by:
getBaseHeight
in classChunkGenerator
-
initValidStates
public static void initValidStates() -
getBaseColumn
- Specified by:
getBaseColumn
in classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfo
in classChunkGenerator
-
getBlockStateFor
-
applyCarvers
public void applyCarvers(WorldGenRegion pLevel, long pSeed, RandomState pRandom, BiomeManager pBiomeManager, StructureManager pStructureManager, ChunkAccess pChunk, GenerationStep.Carving pStep) - Specified by:
applyCarvers
in classChunkGenerator
-
spawnOriginalMobs
- Specified by:
spawnOriginalMobs
in classChunkGenerator
-
getMinY
public int getMinY()- Specified by:
getMinY
in classChunkGenerator
-
getGenDepth
public int getGenDepth()- Specified by:
getGenDepth
in classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in classChunkGenerator
-