Class DripstoneUtils
java.lang.Object
net.minecraft.world.level.levelgen.feature.DripstoneUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
buildBaseToTipColumn
(Direction direction, int height, boolean mergeTip, Consumer<BlockState> blockSetter) private static BlockState
createPointedDripstone
(Direction direction, DripstoneThickness dripstoneThickness) protected static double
getDripstoneHeight
(double radius, double maxRadius, double scale, double minRadius) The formula used to control dripstone columns radius.protected static void
growPointedDripstone
(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) protected static boolean
isCircleMostlyEmbeddedInStone
(WorldGenLevel level, BlockPos pos, int radius) static boolean
isDripstoneBase
(BlockState state) static boolean
isDripstoneBaseOrLava
(BlockState state) static boolean
isEmptyOrWater
(BlockState state) protected static boolean
isEmptyOrWater
(LevelAccessor level, BlockPos pos) static boolean
isEmptyOrWaterOrLava
(BlockState state) protected static boolean
isEmptyOrWaterOrLava
(LevelAccessor level, BlockPos pos) static boolean
isNeitherEmptyNorWater
(BlockState state) protected static boolean
placeDripstoneBlockIfPossible
(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
-