Class DripstoneUtils
java.lang.Object
net.minecraft.world.level.levelgen.feature.DripstoneUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidbuildBaseToTipColumn(Direction direction, int height, boolean mergeTip, Consumer<BlockState> blockSetter) private static BlockStatecreatePointedDripstone(Direction direction, DripstoneThickness dripstoneThickness) protected static doublegetDripstoneHeight(double radius, double maxRadius, double scale, double minRadius) The formula used to control dripstone columns radius.protected static voidgrowPointedDripstone(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) protected static booleanisCircleMostlyEmbeddedInStone(WorldGenLevel level, BlockPos pos, int radius) static booleanisDripstoneBase(BlockState state) static booleanisDripstoneBaseOrLava(BlockState state) static booleanisEmptyOrWater(BlockState state) protected static booleanisEmptyOrWater(LevelAccessor level, BlockPos pos) static booleanisEmptyOrWaterOrLava(BlockState state) protected static booleanisEmptyOrWaterOrLava(LevelAccessor level, BlockPos pos) static booleanisNeitherEmptyNorWater(BlockState state) protected static booleanplaceDripstoneBlockIfPossible(LevelAccessor level, BlockPos pos)
-
Constructor Details
-
DripstoneUtils
public DripstoneUtils()
-
-
Method Details
-
getDripstoneHeight
protected static double getDripstoneHeight(double radius, double maxRadius, double scale, double minRadius) The formula used to control dripstone columns radius.- See Also:
-
isCircleMostlyEmbeddedInStone
protected static boolean isCircleMostlyEmbeddedInStone(WorldGenLevel level, BlockPos pos, int radius) -
isEmptyOrWater
-
isEmptyOrWaterOrLava
-
buildBaseToTipColumn
protected static void buildBaseToTipColumn(Direction direction, int height, boolean mergeTip, Consumer<BlockState> blockSetter) -
growPointedDripstone
protected static void growPointedDripstone(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) -
placeDripstoneBlockIfPossible
-
createPointedDripstone
private static BlockState createPointedDripstone(Direction direction, DripstoneThickness dripstoneThickness) -
isDripstoneBaseOrLava
-
isDripstoneBase
-
isEmptyOrWater
-
isNeitherEmptyNorWater
-
isEmptyOrWaterOrLava
-