default void removeResourcePacks(final @NotNull Iterable<UUID> ids) {
    // break these out to id + arrays
    final Iterator<UUID> it = ids.iterator();
    if (!it.hasNext()) return;

    final UUID id = it.next();
    final UUID[] others;
    if (!it.hasNext()) {
      others = new UUID[0];
    } else if (ids instanceof Collection<?>) {
      others = new UUID[((Collection<UUID>) ids).size() - 1];
      for (int i = 0; i < others.length; i++) {
        others[i] = it.next();
      }
    } else {
      final List<UUID> othersList = new ArrayList<>();
      while (it.hasNext()) {
        othersList.add(it.next());
      }
      others = othersList.toArray(new UUID[0]);
    }

    this.removeResourcePacks(id, others);
  }
Clear resource packs with the provided ids if they are present.

@param ids the ids of resource packs to remove
@since 4.16.0
@sinceMinecraft 1.20.3
api/src/main/java/net/kyori/adventure/audience/Audience.java