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 booleancarve(Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, int int3, int int4, int int5, int int6, BitSet bitSet, ProbabilityConfig probabilityConfig)protected voidcarveCave(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 voidcarveTunnels(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 intgetCaveY(Random random)protected intgetMaxCaveCount()protected doublegetTunnelSystemHeightWidthRatio()protected floatgetTunnelSystemWidth(Random random)protected booleanisPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)booleanshouldCarve(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:
shouldCarvein 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:
carvein 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:
isPositionExcludedin classCarver<ProbabilityConfig>
-