public class RavineCarver extends Carver<ProbabilityConfig>
Modifier and Type | Field and Description |
---|---|
private float[] |
heightToHorizontalStretchFactor |
AIR, alwaysCarvableBlocks, CANYON, carvableFluids, CAVE, CAVE_AIR, heightLimit, LAVA, NETHER_CAVE, UNDERWATER_CANYON, UNDERWATER_CAVE, WATER
Constructor and Description |
---|
RavineCarver(com.mojang.serialization.Codec<ProbabilityConfig> codec) |
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) |
private void |
carveRavine(Chunk chunk,
Function<BlockPos,Biome> posToBiome,
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) |
boolean |
shouldCarve(Random random,
int int2,
int int3,
ProbabilityConfig probabilityConfig) |
canAlwaysCarveBlock, canCarveBlock, canCarveBranch, carveAtPoint, carveRegion, getBranchFactor, getCodec, isRegionUncarvable, method_28614
public RavineCarver(com.mojang.serialization.Codec<ProbabilityConfig> codec)
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>
private void carveRavine(Chunk chunk, Function<BlockPos,Biome> posToBiome, 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>