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> 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 ChunkGenerator
biomeSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugScreenInfo(List<String> result, RandomState randomState, BlockPos feetPos, SamplerContext samplerContext) voidapplyBiomeDecoration(WorldGenLevel level, ChunkAccess chunk, StructureManager structureManager) buildTerrain(ChunkAccess chunk, Blender blender, RandomState randomState, StructureManager structureManager, BiomeManager biomeManager, @Nullable WorldGenRegion carverBiomeRegion, Set<Holder<Biome>> possibleBiomes) protected com.mojang.serialization.MapCodec<? extends ChunkGenerator> codec()getBaseColumn(int x, int z, LevelHeightAccessor heightAccessor, RandomState randomState) intgetBaseHeight(int x, int z, Heightmap.Types type, LevelHeightAccessor heightAccessor, RandomState randomState) static BlockStategetBlockStateFor(int worldX, int worldZ) intintgetMinY()intstatic voidvoidspawnOriginalMobs(WorldGenRegion worldGenRegion) Methods inherited from class ChunkGenerator
createBiomes, createReferences, createState, createStructures, decorateBiomeResolver, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getOrigin, getSpawnHeight, getTypeNameForDataFixer, refreshFeaturesPerStep, validate
-
Field Details
-
CODEC
-
BLOCK_MARGIN
private static final int BLOCK_MARGIN- See Also:
-
ALL_BLOCKS
-
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
-
applyBiomeDecoration
public void applyBiomeDecoration(WorldGenLevel level, ChunkAccess chunk, StructureManager structureManager) - Overrides:
applyBiomeDecorationin classChunkGenerator
-
buildTerrain
public CompletableFuture<ChunkAccess> buildTerrain(ChunkAccess chunk, Blender blender, RandomState randomState, StructureManager structureManager, BiomeManager biomeManager, @Nullable WorldGenRegion carverBiomeRegion, Set<Holder<Biome>> possibleBiomes) - Specified by:
buildTerrainin classChunkGenerator
-
getBaseHeight
public int getBaseHeight(int x, int z, Heightmap.Types type, LevelHeightAccessor heightAccessor, RandomState randomState) - Specified by:
getBaseHeightin classChunkGenerator
-
initValidStates
public static void initValidStates() -
getBaseColumn
public NoiseColumn getBaseColumn(int x, int z, LevelHeightAccessor heightAccessor, RandomState randomState) - Specified by:
getBaseColumnin classChunkGenerator
-
addDebugScreenInfo
public void addDebugScreenInfo(List<String> result, RandomState randomState, BlockPos feetPos, SamplerContext samplerContext) - Specified by:
addDebugScreenInfoin classChunkGenerator
-
getBlockStateFor
-
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
-