# Bossbar Builder

### Overview

The `BossBarBuilder` class simplifies the creation and management of boss bars for players in a Minecraft Bukkit server environment. It provides methods for setting the title, color, style, progress, and flags of boss bars, as well as creating and updating boss bars for individual players.

### Constructor

#### `BossBarBuilder`

```java
public BossBarBuilder(JavaPlugin plugin)
```

Initializes a new instance of the `BossBarBuilder` class with the specified JavaPlugin instance.

**Parameters**

* `plugin`: The JavaPlugin instance associated with the boss bar builder.

### Methods

#### `setTitle`

```java
public BossBarBuilder setTitle(String title)
```

Sets the title of the boss bar.

#### `setColor`

```java
public BossBarBuilder setColor(BarColor color)
```

Sets the color of the boss bar.

#### `setStyle`

```java
public BossBarBuilder setStyle(BarStyle style)
```

Sets the style of the boss bar.

#### `setProgress`

```java
public BossBarBuilder setProgress(float progress)
```

Sets the progress (percentage filled) of the boss bar.

#### `setFlags`

```java
public BossBarBuilder setFlags(BarFlag... flags)
```

Sets the flags of the boss bar.

#### `create`

```java
public BossBarBuilder create(Player player)
```

Creates a boss bar for the specified player with the configured properties.

**Parameters**

* `player`: The player for whom the boss bar is created.

#### `update`

```java
public BossBarBuilder update(Player player)
```

Updates the boss bar for the specified player with the current configuration.

**Parameters**

* `player`: The player whose boss bar is updated.

### Notes

* The `BossBarBuilder` class allows for the creation and management of dynamic boss bars to provide players with visual indicators or progress trackers.
* Developers can configure various properties of the boss bar, including title, color, style, progress, and flags, to suit different gameplay scenarios.
* Boss bars created using this builder pattern can be easily updated to reflect changes in player status or game events.
