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 boolean
canBeReplaced
(BlockState p_394221_, BlockPlaceContext p_394124_, IntegerProperty p_394071_) default IntegerProperty
default Function
<BlockState, VoxelShape> getShapeCalculator
(EnumProperty<Direction> p_394273_, IntegerProperty p_394415_) default double
default BlockState
getStateForPlacement
(BlockPlaceContext p_394035_, Block p_393593_, IntegerProperty p_394488_, EnumProperty<Direction> p_393563_)
-
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> p_394273_, IntegerProperty p_394415_) -
getSegmentAmountProperty
-
getShapeHeight
default double getShapeHeight() -
canBeReplaced
default boolean canBeReplaced(BlockState p_394221_, BlockPlaceContext p_394124_, IntegerProperty p_394071_) -
getStateForPlacement
default BlockState getStateForPlacement(BlockPlaceContext p_394035_, Block p_393593_, IntegerProperty p_394488_, EnumProperty<Direction> p_393563_)
-