static @NotNull BossBar bossBar(final @NotNull Component name, final float progress, final @NotNull Color color, final @NotNull Overlay overlay, final @NotNull Set<Flag> flags) {
    BossBarImpl.checkProgress(progress);
    return new BossBarImpl(name, progress, color, overlay, flags);
  }
Creates a new bossbar.

@param name the name
@param progress the progress, between 0 and 1
@param color the color
@param overlay the overlay
@param flags the flags
@return a bossbar
@throws IllegalArgumentException if progress is less than 0 or greater than 1
@since 4.0.0
api/src/main/java/net/kyori/adventure/bossbar/BossBar.java