Class NetherWorldCarver
java.lang.Object
net.minecraft.world.level.levelgen.carver.WorldCarver<CaveCarverConfiguration>
net.minecraft.world.level.levelgen.carver.CaveWorldCarver
net.minecraft.world.level.levelgen.carver.NetherWorldCarver
-
Nested Class Summary
Nested classes/interfaces inherited from class WorldCarver
WorldCarver.CarveSkipChecker -
Field Summary
Fields inherited from class WorldCarver
AIR, CANYON, CAVE, CAVE_AIR, LAVA, liquids, NETHER_CAVE, WATER -
Constructor Summary
ConstructorsConstructorDescriptionNetherWorldCarver(com.mojang.serialization.Codec<CaveCarverConfiguration> configurationFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancarveBlock(CarvingContext context, CaveCarverConfiguration configuration, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeGetter, CarvingMask mask, BlockPos.MutableBlockPos blockPos, BlockPos.MutableBlockPos helperPos, Aquifer aquifer, org.apache.commons.lang3.mutable.MutableBoolean hasGrass) Carves a single block, replacing it with the appropriate state if possible, and handles replacing exposed dirt with grass.protected intprotected floatgetThickness(RandomSource random) protected doubleMethods inherited from class CaveWorldCarver
carve, createRoom, createTunnel, isStartChunkMethods inherited from class WorldCarver
canReach, canReplaceBlock, carveEllipsoid, configured, configuredCodec, getRange
-
Constructor Details
-
NetherWorldCarver
public NetherWorldCarver(com.mojang.serialization.Codec<CaveCarverConfiguration> configurationFactory)
-
-
Method Details
-
getCaveBound
protected int getCaveBound()- Overrides:
getCaveBoundin classCaveWorldCarver
-
getThickness
- Overrides:
getThicknessin classCaveWorldCarver
-
getYScale
protected double getYScale()- Overrides:
getYScalein classCaveWorldCarver
-
carveBlock
protected boolean carveBlock(CarvingContext context, CaveCarverConfiguration configuration, ChunkAccess chunk, Function<BlockPos, Holder<Biome>> biomeGetter, CarvingMask mask, BlockPos.MutableBlockPos blockPos, BlockPos.MutableBlockPos helperPos, Aquifer aquifer, org.apache.commons.lang3.mutable.MutableBoolean hasGrass) Description copied from class:WorldCarverCarves a single block, replacing it with the appropriate state if possible, and handles replacing exposed dirt with grass.- Overrides:
carveBlockin classWorldCarver<CaveCarverConfiguration>- Parameters:
blockPos- The position to carve at. The method does not mutate this position.helperPos- An additional mutable block position object to be used and modified by the methodhasGrass- Set to true if the block carved was the surface, which is checked as being either grass or mycelium
-