package net.qbar.common.block;

import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.qbar.common.tile.TileOffshorePump;

public class BlockOffshorePump extends BlockOrientableMachine
{

    public BlockOffshorePump()
    {
        super("offshore_pump", Material.IRON, true, false);
    }

    @Override
    public boolean isOpaqueCube(final IBlockState state)
    {
        return false;
    }

    @Override
    public boolean isFullCube(final IBlockState state)
    {
        return false;
    }

    @Override
    public void onBlockPlacedBy(final World w, final BlockPos pos, final IBlockState state,
            final EntityLivingBase placer, final ItemStack stack)
    {
        super.onBlockPlacedBy(w, pos, state, placer, stack);
        if (!w.isRemote)
            ((TileOffshorePump) w.getTileEntity(pos)).setFacing(this.getFacing(state));
    }

    @Override
    public boolean rotateBlock(final World world, final BlockPos pos, final EnumFacing facing)
    {
        super.rotateBlock(world, pos, facing);

        if (!world.isRemote)
            ((TileOffshorePump) world.getTileEntity(pos)).setFacing(facing);
        return true;
    }

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

@@ -313,23 +313,110 @@
 il.math.
-BlockPo
+AxisAlignedBB;%0Aimport net.minecraft.util.math.BlockPos;%0Aimport net.minecraft.world.IBlockAcces
 s;%0Aimpor
@@ -554,16 +554,476 @@
 achine%0A%7B
+%0A    protected static final AxisAlignedBB AABB_EAST  = new AxisAlignedBB(0.20D, 0.00D, 0.00D, 1.00D, 1.00D, 0.77D);%0A    protected static final AxisAlignedBB AABB_NORTH = new AxisAlignedBB(0.00D, 0.00D, 0.00D, 0.80D, 1.00D, 0.77D);%0A    protected static final AxisAlignedBB AABB_WEST  = new AxisAlignedBB(0.00D, 0.00D, 0.23D, 0.80D, 1.00D, 1.00D);%0A    protected static final AxisAlignedBB AABB_SOUTH = new AxisAlignedBB(0.20D, 0.00D, 0.23D, 1.00D, 1.00D, 1.00D);
 %0A%0A    pu
@@ -2077,32 +2077,32 @@
 int meta)%0A    %7B%0A
-
         return n
@@ -2131,11 +2131,473 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)%0A    %7B%0A        switch (getFacing(state))%0A        %7B%0A            case EAST:%0A                return AABB_EAST;%0A            case WEST:%0A                return AABB_WEST;%0A            case NORTH:%0A                return AABB_NORTH;%0A            case SOUTH:%0A                return AABB_SOUTH;%0A            default:%0A                return AABB_CUBE;%0A        %7D%0A    %7D
 %0A%7D%0A

Add bounding box for OffshorePump