Package net.minecraft.world.gen.carver
Class CaveCarver
- Direct Known Subclasses:
NetherCaveCarver
,UnderwaterCaveCarver
public class CaveCarver extends Carver<ProbabilityConfig>
-
Field Summary
Fields inherited from class net.minecraft.world.gen.carver.Carver
AIR, alwaysCarvableBlocks, CANYON, carvableFluids, CAVE, CAVE_AIR, heightLimit, LAVA, NETHER_CAVE, UNDERWATER_CANYON, UNDERWATER_CAVE, WATER
-
Constructor Summary
Constructors Constructor Description CaveCarver(com.mojang.serialization.Codec<ProbabilityConfig> configCodec, int heightLimit)
-
Method Summary
Modifier and Type Method Description boolean
carve(Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, int int3, int int4, int int5, int int6, BitSet bitSet, ProbabilityConfig probabilityConfig)
protected void
carveCave(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int mainChunkX, int mainChunkZ, double x, double y, double z, float yaw, double yawPitchRatio, BitSet carvingMask)
protected void
carveTunnels(Chunk chunk, Function<BlockPos,Biome> postToBiome, long seed, int seaLevel, int mainChunkX, int mainChunkZ, double x, double y, double z, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, BitSet carvingMask)
protected int
getCaveY(Random random)
protected int
getMaxCaveCount()
protected double
getTunnelSystemHeightWidthRatio()
protected float
getTunnelSystemWidth(Random random)
protected boolean
isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)
boolean
shouldCarve(Random random, int int2, int int3, ProbabilityConfig probabilityConfig)
Methods inherited from class net.minecraft.world.gen.carver.Carver
canAlwaysCarveBlock, canCarveBlock, canCarveBranch, carveAtPoint, carveRegion, configure, getBranchFactor, getCodec, isRegionUncarvable
-
Constructor Details
-
CaveCarver
-
-
Method Details
-
shouldCarve
- Specified by:
shouldCarve
in classCarver<ProbabilityConfig>
-
carve
public boolean carve(Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, int int3, int int4, int int5, int int6, BitSet bitSet, ProbabilityConfig probabilityConfig)- Specified by:
carve
in classCarver<ProbabilityConfig>
-
getMaxCaveCount
protected int getMaxCaveCount() -
getTunnelSystemWidth
-
getTunnelSystemHeightWidthRatio
protected double getTunnelSystemHeightWidthRatio() -
getCaveY
-
carveCave
-
carveTunnels
-
isPositionExcluded
protected boolean isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)- Specified by:
isPositionExcluded
in classCarver<ProbabilityConfig>
-