public class CaveCarver extends Carver<ProbabilityConfig>
AIR, alwaysCarvableBlocks, CANYON, carvableFluids, CAVE, CAVE_AIR, heightLimit, LAVA, NETHER_CAVE, UNDERWATER_CANYON, UNDERWATER_CAVE, WATER
Constructor and Description |
---|
CaveCarver(com.mojang.serialization.Codec<ProbabilityConfig> configCodec,
int heightLimit) |
Modifier and Type | Method and 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) |
canAlwaysCarveBlock, canCarveBlock, canCarveBranch, carveAtPoint, carveRegion, getBranchFactor, getCodec, isRegionUncarvable, method_28614
public CaveCarver(com.mojang.serialization.Codec<ProbabilityConfig> configCodec, int heightLimit)
public boolean shouldCarve(Random random, int int2, int int3, ProbabilityConfig probabilityConfig)
shouldCarve
in class Carver<ProbabilityConfig>
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)
carve
in class Carver<ProbabilityConfig>
protected int getMaxCaveCount()
protected float getTunnelSystemWidth(Random random)
protected double getTunnelSystemHeightWidthRatio()
protected int getCaveY(Random random)
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 boolean isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)
isPositionExcluded
in class Carver<ProbabilityConfig>