24 lines
661 B
Java
24 lines
661 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.world.item;
|
|
|
|
import net.minecraft.world.item.BlockItem;
|
|
import net.minecraft.world.item.Item;
|
|
import net.minecraft.world.item.context.BlockPlaceContext;
|
|
import net.minecraft.world.level.block.Block;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
|
|
public class BedItem
|
|
extends BlockItem {
|
|
public BedItem(Block block, Item.Properties properties) {
|
|
super(block, properties);
|
|
}
|
|
|
|
@Override
|
|
protected boolean placeBlock(BlockPlaceContext context, BlockState placementState) {
|
|
return context.getLevel().setBlock(context.getClickedPos(), placementState, 26);
|
|
}
|
|
}
|
|
|