2025-11-24 22:52:51 +03:00

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);
}
}