Class SpeleothemUtils
java.lang.Object
net.minecraft.world.level.levelgen.feature.SpeleothemUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidbuildBaseToTipColumn(Direction direction, int totalLength, boolean mergedTip, Consumer<BlockState> consumer, Block pointedBlock) private static BlockStatecreatePointedBlock(Direction direction, SpeleothemThickness thickness, Block pointedBlock) protected static doublegetSpeleothemHeight(double xzDistanceFromCenter, double speleothemRadius, double scale, double bluntness) protected static voidgrowSpeleothem(LevelAccessor level, BlockPos startPos, Direction tipDirection, int height, boolean mergedTip, Block baseBlock, Block pointedBlock, HolderSet<Block> replaceableBlocks) static booleanisBase(BlockState state, Block baseBlock, HolderSet<Block> replaceableBlocks) static booleanisBaseOrLava(BlockState state, Block baseBlock, HolderSet<Block> replaceableBlocks) protected static booleanisCircleMostlyEmbeddedInStone(WorldGenLevel level, BlockPos center, int xzRadius) 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 booleanplaceBaseBlockIfPossible(LevelAccessor level, BlockPos pos, Block baseBlock, HolderSet<Block> replaceableBlocks)
-
Constructor Details
-
SpeleothemUtils
public SpeleothemUtils()
-
-
Method Details
-
getSpeleothemHeight
protected static double getSpeleothemHeight(double xzDistanceFromCenter, double speleothemRadius, double scale, double bluntness) -
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, Block pointedBlock) -
growSpeleothem
-
placeBaseBlockIfPossible
protected static boolean placeBaseBlockIfPossible(LevelAccessor level, BlockPos pos, Block baseBlock, HolderSet<Block> replaceableBlocks) -
createPointedBlock
private static BlockState createPointedBlock(Direction direction, SpeleothemThickness thickness, Block pointedBlock) -
isBaseOrLava
public static boolean isBaseOrLava(BlockState state, Block baseBlock, HolderSet<Block> replaceableBlocks) -
isBase
-
isEmptyOrWater
-
isNeitherEmptyNorWater
-
isEmptyOrWaterOrLava
-