2020-07-22 06:23:34 +01:00
|
|
|
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 {
|
2020-07-22 06:25:47 +01:00
|
|
|
public BedItem(final Block bpe, final Properties a) {
|
|
|
|
super(bpe, a);
|
2020-07-22 06:23:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-07-22 06:25:47 +01:00
|
|
|
protected boolean placeBlock(final BlockPlaceContext bcn, final BlockState byg) {
|
|
|
|
return bcn.getLevel().setBlock(bcn.getClickedPos(), byg, 26);
|
2020-07-22 06:23:34 +01:00
|
|
|
}
|
|
|
|
}
|