public void getEntitiesOfTypeWithinAAAB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, List par3List)
    {
        int var4 = MathHelper.floor_double((par2AxisAlignedBB.minY - World.MAX_ENTITY_RADIUS) / 16.0D);
        int var5 = MathHelper.floor_double((par2AxisAlignedBB.maxY + World.MAX_ENTITY_RADIUS) / 16.0D);

        if (var4 < 0)
        {
            var4 = 0;
        }
        else if (var4 >= this.entityLists.length)
        {
            var4 = this.entityLists.length - 1;
        }

        if (var5 >= this.entityLists.length)
        {
            var5 = this.entityLists.length - 1;
        }
        else if (var5 < 0)
        {
            var5 = 0;
        }

        for (int var6 = var4; var6 <= var5; ++var6)
        {
            List var7 = this.entityLists[var6];

            for (int var8 = 0; var8 < var7.size(); ++var8)
            {
                Entity var9 = (Entity)var7.get(var8);

                if (par1Class.isAssignableFrom(var9.getClass()) && var9.boundingBox.intersectsWith(par2AxisAlignedBB))
                {
                    par3List.add(var9);
                }
            }
        }
    }