Class DripstoneHelper
java.lang.Object
net.minecraft.world.gen.feature.util.DripstoneHelper
public class DripstoneHelper extends Object
-
Constructor Summary
Constructors Constructor Description DripstoneHelper() -
Method Summary
Modifier and Type Method Description static booleancanGenerate(BlockState state)protected static booleancanGenerate(WorldAccess world, BlockPos pos)protected static booleancanGenerateBase(StructureWorldAccess world, BlockPos pos, int height)static booleancanReplace(BlockState state)protected static booleangenerateDripstoneBlock(StructureWorldAccess world, BlockPos pos)protected static voidgeneratePointedDripstone(StructureWorldAccess world, BlockPos pos, Direction direction, int height, boolean merge)protected static voidgetDripstoneThickness(Direction direction, int height, boolean merge, Consumer<BlockState> callback)private static BlockStategetState(Direction direction, Thickness thickness)protected static doublescaleHeightFromRadius(double radius, double scale, double heightScale, double bluntness)
-
Constructor Details
-
DripstoneHelper
public DripstoneHelper()
-
-
Method Details
-
scaleHeightFromRadius
protected static double scaleHeightFromRadius(double radius, double scale, double heightScale, double bluntness) -
canGenerateBase
-
canGenerate
-
getDripstoneThickness
protected static void getDripstoneThickness(Direction direction, int height, boolean merge, Consumer<BlockState> callback) -
generatePointedDripstone
protected static void generatePointedDripstone(StructureWorldAccess world, BlockPos pos, Direction direction, int height, boolean merge) -
generateDripstoneBlock
-
getState
-
canReplace
-
canGenerate
-