## Bossbar
The Bossbar shows up on the top of a specific player screen and displays a text with a value bar.
|constructor||
|--|--|
|String|id of the bossbar(tip: use [namespace]:id to avoid interference)|
|name| a String for the displayed text(optional) |
This alone would add a new bossbar to the game:
```dart
Bossbar("test:mybar","This is my bar")
⇒ bossbar add test:mybar {"text":"This is my bar"}
```
To modifiy some properties, there are some methods on the Bossbar to change the output:
### Methods
**remove** - removes the selected bossbar in the game
**show** - takes in an entity and shows the bossbar for the selected players
**get** - gets an BossbarOption of the specified Bossbar
> BossbarOption.max, BossbarOption.value, BossbarOption.visible or BossbarOption.players
|set| sets an option of the bossbar |
|--|--|
|name| displayed String |
|nameTexts| a List of TextComponents that override the name with more control |
|color| the Color of the Bossbar |
|style| a Style Mode |
|value| the displayed value |
|max| the maximum amount of the displayed value |
|visible| bool if the bossbar is visible|
|players| the Entityselector to which the bossbar is displayed |
The set method generates multiple commands:
```dart
Bossbar("test:mybar").set(
name:"My name",
value: 5,
max: 10,
color: Color.Red,
players: Entity.All()
)
⇒ bossbar set test:mybar name {"text":"My name"}
⇒ bossbar set test:mybar color red
⇒ bossbar set test:mybar value 5
⇒ bossbar set test:mybar max 10
⇒ bossbar set test:mybar players @a
```