package net.qbar.common.block;

import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.qbar.common.tile.TileBoiler;

public class BlockBoiler extends BlockMachineBase
{
    public BlockBoiler()
    {
        super("boiler", Material.IRON);
    }

    @Override
    public TileEntity createNewTileEntity(final World worldIn, final int meta)
    {
        return new TileBoiler();
    }
}

@@ -96,29 +96,239 @@
 aft.
-tileentity.TileEntity
+block.state.IBlockState;%0Aimport net.minecraft.entity.player.EntityPlayer;%0Aimport net.minecraft.tileentity.TileEntity;%0Aimport net.minecraft.util.EnumFacing;%0Aimport net.minecraft.util.EnumHand;%0Aimport net.minecraft.util.math.BlockPos
 ;%0Aim
@@ -398,16 +398,56 @@
 eBoiler;
+%0Aimport net.qbar.common.util.FluidUtils;
 %0A%0Apublic
@@ -515,32 +515,32 @@
 kBoiler()%0A    %7B%0A
-
         super(%22b
@@ -570,16 +570,798 @@
 %0A    %7D%0A%0A
+    @Override%0A    public boolean onBlockActivated(final World w, final BlockPos pos, final IBlockState state,%0A            final EntityPlayer player, final EnumHand hand, final EnumFacing facing, final float hitX, final float hitY,%0A            final float hitZ)%0A    %7B%0A        if (player.isSneaking())%0A            return false;%0A        if (!w.isRemote)%0A        %7B%0A            final TileBoiler boiler = (TileBoiler) w.getTileEntity(pos);%0A%0A            if (boiler != null)%0A            %7B%0A                if (FluidUtils.drainPlayerHand(boiler.getFluidTank().getInternalFluidHandler(), player)%0A                        %7C%7C FluidUtils.fillPlayerHand(boiler.getFluidTank().getInternalFluidHandler(), player))%0A                    return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A
     @Ove

Add fluidtank hand filling to boiler