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 totalLength, boolean mergedTip, Consumer<BlockState> consumer) private static BlockStatecreatePointedDripstone(Direction direction, DripstoneThickness thickness) protected static doublegetDripstoneHeight(double xzDistanceFromCenter, double dripstoneRadius, double scale, double bluntness) The formula used to control dripstone columns radius.protected static voidgrowPointedDripstone(LevelAccessor level, BlockPos startPos, Direction tipDirection, int height, boolean mergedTip) protected static booleanisCircleMostlyEmbeddedInStone(WorldGenLevel level, BlockPos center, int xzRadius) 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 xzDistanceFromCenter, double dripstoneRadius, double scale, double bluntness) The formula used to control dripstone columns radius.- See Also:
-
isCircleMostlyEmbeddedInStone
protected static boolean isCircleMostlyEmbeddedInStone(WorldGenLevel level, BlockPos center, int xzRadius) -
isEmptyOrWater
-
isEmptyOrWaterOrLava
-
buildBaseToTipColumn
protected static void buildBaseToTipColumn(Direction direction, int totalLength, boolean mergedTip, Consumer<BlockState> consumer) -
growPointedDripstone
protected static void growPointedDripstone(LevelAccessor level, BlockPos startPos, Direction tipDirection, int height, boolean mergedTip) -
placeDripstoneBlockIfPossible
-
createPointedDripstone
-
isDripstoneBaseOrLava
-
isDripstoneBase
-
isEmptyOrWater
-
isNeitherEmptyNorWater
-
isEmptyOrWaterOrLava
-