Class DebugLevelSource
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.DebugLevelSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final BlockStateprivate static List<BlockState> A list of all valid block states.protected static final BlockStatestatic final intprivate static final intstatic final com.mojang.serialization.MapCodec<DebugLevelSource> private static intprivate static intstatic final intFields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugScreenInfo(List<String> info, RandomState random, BlockPos pos) voidapplyBiomeDecoration(WorldGenLevel level, ChunkAccess chunk, StructureManager structureManager) voidapplyCarvers(WorldGenRegion level, long seed, RandomState random, BiomeManager biomeManager, StructureManager structureManager, ChunkAccess chunk, GenerationStep.Carving step) voidbuildSurface(WorldGenRegion level, StructureManager structureManager, RandomState random, ChunkAccess chunk) protected com.mojang.serialization.MapCodec<? extends ChunkGenerator> codec()fillFromNoise(Blender blender, RandomState randomState, StructureManager structureManager, ChunkAccess chunk) getBaseColumn(int x, int z, LevelHeightAccessor height, RandomState random) intgetBaseHeight(int x, int z, Heightmap.Types type, LevelHeightAccessor level, RandomState random) static BlockStategetBlockStateFor(int chunkX, int chunkZ) intintgetMinY()intstatic voidvoidspawnOriginalMobs(WorldGenRegion level) 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:
codecin classChunkGenerator
-
buildSurface
public void buildSurface(WorldGenRegion level, StructureManager structureManager, RandomState random, ChunkAccess chunk) - Specified by:
buildSurfacein classChunkGenerator
-
applyBiomeDecoration
public void applyBiomeDecoration(WorldGenLevel level, ChunkAccess chunk, StructureManager structureManager) - Overrides:
applyBiomeDecorationin classChunkGenerator
-
fillFromNoise
public CompletableFuture<ChunkAccess> fillFromNoise(Blender blender, RandomState randomState, StructureManager structureManager, ChunkAccess chunk) - Specified by:
fillFromNoisein classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int x, int z, Heightmap.Types type, LevelHeightAccessor level, RandomState random) - Specified by:
getBaseHeightin classChunkGenerator
-
initValidStates
public static void initValidStates() -
getBaseColumn
- Specified by:
getBaseColumnin classChunkGenerator
-
addDebugScreenInfo
- Specified by:
addDebugScreenInfoin classChunkGenerator
-
getBlockStateFor
-
applyCarvers
public void applyCarvers(WorldGenRegion level, long seed, RandomState random, BiomeManager biomeManager, StructureManager structureManager, ChunkAccess chunk, GenerationStep.Carving step) - Specified by:
applyCarversin classChunkGenerator
-
spawnOriginalMobs
- Specified by:
spawnOriginalMobsin classChunkGenerator
-
getMinY
public int getMinY()- Specified by:
getMinYin classChunkGenerator
-
getGenDepth
public int getGenDepth()- Specified by:
getGenDepthin classChunkGenerator
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevelin classChunkGenerator
-