Class SpeleothemUtils

java.lang.Object
net.minecraft.world.level.levelgen.feature.SpeleothemUtils

public class SpeleothemUtils extends Object
  • 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

      protected static boolean isEmptyOrWater(LevelAccessor level, BlockPos pos)
    • isEmptyOrWaterOrLava

      protected static boolean isEmptyOrWaterOrLava(LevelAccessor level, BlockPos pos)
    • buildBaseToTipColumn

      protected static void buildBaseToTipColumn(Direction direction, int totalLength, boolean mergedTip, Consumer<BlockState> consumer, Block pointedBlock)
    • growSpeleothem

      protected static void growSpeleothem(LevelAccessor level, BlockPos startPos, Direction tipDirection, int height, boolean mergedTip, Block baseBlock, Block pointedBlock, HolderSet<Block> replaceableBlocks)
    • 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

      public static boolean isBase(BlockState state, Block baseBlock, HolderSet<Block> replaceableBlocks)
    • isEmptyOrWater

      public static boolean isEmptyOrWater(BlockState state)
    • isNeitherEmptyNorWater

      public static boolean isNeitherEmptyNorWater(BlockState state)
    • isEmptyOrWaterOrLava

      public static boolean isEmptyOrWaterOrLava(BlockState state)