Package net.minecraft.world.level.block
Interface SegmentableBlock
- All Known Implementing Classes:
FlowerBedBlock,LeafLitterBlock
public interface SegmentableBlock
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanBeReplaced(BlockState pState, BlockPlaceContext pContext, IntegerProperty pAmountProperty) default IntegerPropertydefault Function<BlockState, VoxelShape> getShapeCalculator(EnumProperty<Direction> pDirectionProperty, IntegerProperty pAmountProperty) default doubledefault BlockStategetStateForPlacement(BlockPlaceContext pContext, Block pBlock, IntegerProperty pAmountProperty, EnumProperty<Direction> pDirectionProperty)
-
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> pDirectionProperty, IntegerProperty pAmountProperty) -
getSegmentAmountProperty
-
getShapeHeight
default double getShapeHeight() -
canBeReplaced
default boolean canBeReplaced(BlockState pState, BlockPlaceContext pContext, IntegerProperty pAmountProperty) -
getStateForPlacement
default BlockState getStateForPlacement(BlockPlaceContext pContext, Block pBlock, IntegerProperty pAmountProperty, EnumProperty<Direction> pDirectionProperty)
-