Interface SegmentableBlock
- All Known Implementing Classes:
FlowerBedBlock, LeafLitterBlock
public interface SegmentableBlock
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanBeReplaced(BlockState state, BlockPlaceContext context, IntegerProperty segment) default IntegerPropertydefault Function<BlockState, VoxelShape> getShapeCalculator(EnumProperty<Direction> facing, IntegerProperty amount) default doubledefault BlockStategetStateForPlacement(BlockPlaceContext context, Block block, IntegerProperty segment, EnumProperty<Direction> facing)
-
Field Details
-
MIN_SEGMENT
static final int MIN_SEGMENT- See Also:
-
MAX_SEGMENT
static final int MAX_SEGMENT- See Also:
-
AMOUNT
-
-
Method Details
-
getShapeCalculator
default Function<BlockState, VoxelShape> getShapeCalculator(EnumProperty<Direction> facing, IntegerProperty amount) -
getSegmentAmountProperty
-
getShapeHeight
default double getShapeHeight() -
canBeReplaced
-
getStateForPlacement
default BlockState getStateForPlacement(BlockPlaceContext context, Block block, IntegerProperty segment, EnumProperty<Direction> facing)
-