Class CaveCarver

Direct Known Subclasses:
NetherCaveCarver, UnderwaterCaveCarver

public class CaveCarver
extends Carver<ProbabilityConfig>
  • Constructor Details

    • CaveCarver

      public CaveCarver​(com.mojang.serialization.Codec<ProbabilityConfig> configCodec, int heightLimit)
  • Method Details

    • shouldCarve

      public boolean shouldCarve​(Random random, int int2, int int3, ProbabilityConfig probabilityConfig)
      Specified by:
      shouldCarve in class Carver<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 class Carver<ProbabilityConfig>
    • getMaxCaveCount

      protected int getMaxCaveCount()
    • getTunnelSystemWidth

      protected float getTunnelSystemWidth​(Random random)
    • getTunnelSystemHeightWidthRatio

      protected double getTunnelSystemHeightWidthRatio()
    • getCaveY

      protected int getCaveY​(Random random)
    • carveCave

      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)
    • carveTunnels

      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)
    • isPositionExcluded

      protected boolean isPositionExcluded​(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)
      Specified by:
      isPositionExcluded in class Carver<ProbabilityConfig>