public EntityPlayer func_48456_a(double par1, double par3, double par5)
    {
        double var7 = -1.0D;
        EntityPlayer var9 = null;

        for (int var10 = 0; var10 < this.playerEntities.size(); ++var10)
        {
            EntityPlayer var11 = (EntityPlayer)this.playerEntities.get(var10);
            double var12 = var11.getDistanceSq(par1, var11.posY, par3);

            if ((par5 < 0.0D || var12 < par5 * par5) && (var7 == -1.0D || var12 < var7))
            {
                var7 = var12;
                var9 = var11;
            }
        }

        return var9;
    }