public boolean isIndirectlyPoweringTo(World par1World, int par2, int par3, int par4, int par5)
    {
        int i = par1World.getBlockMetadata(par2, par3, par4);

        if ((i & 8) != 8)
        {
            return false;
        }

        int j = i & 3;

        if (j == 2 && par5 == 2)
        {
            return true;
        }

        if (j == 0 && par5 == 3)
        {
            return true;
        }

        if (j == 1 && par5 == 4)
        {
            return true;
        }

        return j == 3 && par5 == 5;
    }