Class DripstoneUtils
java.lang.Object
net.minecraft.world.level.levelgen.feature.DripstoneUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
buildBaseToTipColumn
(Direction pDirection, int pHeight, boolean pMergeTip, Consumer<BlockState> pBlockSetter) private static BlockState
createPointedDripstone
(Direction pDirection, DripstoneThickness pDripstoneThickness) protected static double
getDripstoneHeight
(double pRadius, double pMaxRadius, double pScale, double pMinRadius) The formula used to control dripstone columns radius.protected static void
growPointedDripstone
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, int pHeight, boolean pMergeTip) protected static boolean
isCircleMostlyEmbeddedInStone
(WorldGenLevel pLevel, BlockPos pPos, int pRadius) static boolean
isDripstoneBase
(BlockState pState) static boolean
isDripstoneBaseOrLava
(BlockState pState) static boolean
isEmptyOrWater
(BlockState p_159665_) protected static boolean
isEmptyOrWater
(LevelAccessor pLevel, BlockPos pPos) static boolean
isEmptyOrWaterOrLava
(BlockState p_159667_) protected static boolean
isEmptyOrWaterOrLava
(LevelAccessor pLevel, BlockPos pPos) static boolean
isNeitherEmptyNorWater
(BlockState pState) protected static boolean
placeDripstoneBlockIfPossible
(LevelAccessor pLevel, BlockPos pPos)
-
Constructor Details
-
DripstoneUtils
public DripstoneUtils()
-
-
Method Details
-
getDripstoneHeight
protected static double getDripstoneHeight(double pRadius, double pMaxRadius, double pScale, double pMinRadius) The formula used to control dripstone columns radius.- See Also:
-
isCircleMostlyEmbeddedInStone
protected static boolean isCircleMostlyEmbeddedInStone(WorldGenLevel pLevel, BlockPos pPos, int pRadius) -
isEmptyOrWater
-
isEmptyOrWaterOrLava
-
buildBaseToTipColumn
protected static void buildBaseToTipColumn(Direction pDirection, int pHeight, boolean pMergeTip, Consumer<BlockState> pBlockSetter) -
growPointedDripstone
protected static void growPointedDripstone(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, int pHeight, boolean pMergeTip) -
placeDripstoneBlockIfPossible
-
createPointedDripstone
private static BlockState createPointedDripstone(Direction pDirection, DripstoneThickness pDripstoneThickness) -
isDripstoneBaseOrLava
-
isDripstoneBase
-
isEmptyOrWater
-
isNeitherEmptyNorWater
-
isEmptyOrWaterOrLava
-