package net.minecraft.world.item; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.Block; public class BedItem extends BlockItem { public BedItem(final Block bpe, final Properties a) { super(bpe, a); } @Override protected boolean placeBlock(final BlockPlaceContext bcn, final BlockState byg) { return bcn.getLevel().setBlock(bcn.getClickedPos(), byg, 26); } }