/* * Decompiled with CFR 0.152. */ package net.minecraft.world.item; import net.minecraft.core.BlockPos; import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.Item; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.BlockState; public class DoubleHighBlockItem extends BlockItem { public DoubleHighBlockItem(Block block, Item.Properties properties) { super(block, properties); } @Override protected boolean placeBlock(BlockPlaceContext context, BlockState placementState) { BlockPos above; Level level = context.getLevel(); BlockState aboveState = level.isWaterAt(above = context.getClickedPos().above()) ? Blocks.WATER.defaultBlockState() : Blocks.AIR.defaultBlockState(); level.setBlock(above, aboveState, 27); return super.placeBlock(context, placementState); } }