public Icon getBlockOverlayTexture(IBlockAccess world, int x, int y, int z, int side)
{
BlockPosition bp = new BlockPosition(x, y, z, ForgeDirection.VALID_DIRECTIONS[side]);
boolean[] sides = new boolean[8];
bp.moveRight(1);
sides[0] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
bp.moveDown(1);
sides[4] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
bp.moveLeft(1);
sides[1] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;