Class DripstoneUtils
java.lang.Object
net.minecraft.world.level.levelgen.feature.DripstoneUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidbuildBaseToTipColumn(Direction pDirection, int pHeight, boolean pMergeTip, Consumer<BlockState> pBlockSetter) private static BlockStatecreatePointedDripstone(Direction pDirection, DripstoneThickness pDripstoneThickness) protected static doublegetDripstoneHeight(double pRadius, double pMaxRadius, double pScale, double pMinRadius) The formula used to control dripstone columns radius.protected static voidgrowPointedDripstone(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, int pHeight, boolean pMergeTip) protected static booleanisCircleMostlyEmbeddedInStone(WorldGenLevel pLevel, BlockPos pPos, int pRadius) static booleanisDripstoneBase(BlockState pState) static booleanisDripstoneBaseOrLava(BlockState pState) static booleanisEmptyOrWater(BlockState p_159665_) protected static booleanisEmptyOrWater(LevelAccessor pLevel, BlockPos pPos) static booleanisEmptyOrWaterOrLava(BlockState p_159667_) protected static booleanisEmptyOrWaterOrLava(LevelAccessor pLevel, BlockPos pPos) static booleanisNeitherEmptyNorWater(BlockState pState) protected static booleanplaceDripstoneBlockIfPossible(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
-