net.minecraft.block

public class FlowerbedBlock

extends PlantBlock implements Fertilizable, Segmented

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable, Segmented

net.minecraft.world.level.block.FlowerBedBlock
net.minecraft.world.level.block.FlowerBedBlock
net.minecraft.class_10594
net.minecraft.block.FlowerbedBlock

Field summary

Modifier and TypeField
public static final EnumProperty<Direction>
FACING
FACING
field_55762
HORIZONTAL_FACING
public static final IntProperty
AMOUNT
AMOUNT
field_55763
FLOWER_AMOUNT
private final int
shapeHeight
shapeHeight
field_1_7449
field_1_7449
private final Function<BlockState, VoxelShape>
shapes
shapes
field_55764
shapeFunction

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties, int shapeHeight)

Method summary

Modifier and TypeMethod
private Function<BlockState, VoxelShape>
makeShapes()
makeShapes()
method_66435()
createShapeFunction()
public BlockState
rotate(BlockState state, Rotation rotation)
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
public BlockState
mirror(BlockState state, Mirror mirror)
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
public boolean
canBeReplaced(BlockState state, BlockPlaceContext context)
canBeReplaced(BlockState state, BlockPlaceContext context)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState arg0, ItemPlacementContext arg1)
public VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
public double
getShapeHeight()
getShapeHeight()
method_66433()
getHeight()
public IntProperty
getSegmentAmountProperty()
getSegmentAmountProperty()
method_66434()
getAmountProperty()
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
public boolean
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source)
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2, class_1_1322 arg3)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2, FertilizationCause arg3)
public boolean
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3, class_1_1322 arg4)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3, FertilizationCause arg4)
public void
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3, class_1_1322 arg4)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3, FertilizationCause arg4)