net.minecraft.block

public interface Segmented

net.minecraft.world.level.block.SegmentableBlock
net.minecraft.class_10596
net.minecraft.block.Segmented

Field summary

Modifier and TypeField
int
MIN_SEGMENT
field_55789
SEGMENTS_PER_PLACEMENT
int
MAX_SEGMENT
field_55790
MAX_SEGMENTS
IntProperty
AMOUNT
field_55791
SEGMENT_AMOUNT

Method summary

Modifier and TypeMethod
default Function<BlockState, VoxelShape>
getShapeCalculator(EnumProperty<Direction> facing, IntegerProperty amount)
method_66465(class_2754<class_2350> arg0, class_2758 arg1)
createShapeFunction(EnumProperty<Direction> directionProperty, IntProperty segmentAmountProperty)
default IntProperty
getSegmentAmountProperty()
method_66434()
getAmountProperty()
default double
getShapeHeight()
method_66433()
getHeight()
default boolean
canBeReplaced(BlockState state, BlockPlaceContext context, IntegerProperty segment)
method_66464(class_2680 arg0, class_1750 arg1, class_2758 arg2)
shouldAddSegment(BlockState state, ItemPlacementContext context, IntProperty property)
default BlockState
getStateForPlacement(BlockPlaceContext context, Block block, IntegerProperty segment, EnumProperty<Direction> facing)
method_66463(class_1750 arg0, class_2248 arg1, class_2758 arg2, class_2754<class_2350> arg3)
getPlacementState(ItemPlacementContext context, Block block, IntProperty amountProperty, EnumProperty<Direction> directionProperty)
private static VoxelShape
lambda$getShapeCalculator$0(EnumProperty arg0, IntegerProperty arg1, Map arg2, BlockState arg3)
method_66466(class_2754 arg0, class_2758 arg1, Map arg2, class_2680 arg3)
method_66466(EnumProperty arg0, IntProperty arg1, Map arg2, BlockState state)