> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/net/minecraft/network/protocol/game/clientboundbosseventpacket.md).

# ClientboundBossEventPacket

A boss bar being added, removed or changed. Only the fields the operation carries are set; the others are null or 0.

### Extends

* [`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md)

### Properties

#### color

> `readonly` **color**: [`BossBarColor`](/newgen/api/enum_types/bossbarcolor.md)

The bar color, set by ADD and UPDATE\_STYLE.

***

#### createWorldFog

> `readonly` **createWorldFog**: `boolean`

True when the bar adds fog, set by ADD and UPDATE\_PROPERTIES.

***

#### darkenScreen

> `readonly` **darkenScreen**: `boolean`

True when the bar darkens the sky, set by ADD and UPDATE\_PROPERTIES.

***

#### id

> `readonly` **id**: `string`

The protocol id, e.g. "minecraft:swing". Stable across versions, unlike class names.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`id`](/newgen/api/net/minecraft/network/protocol/packet.md#id)

***

#### name

> `readonly` **name**: `string`

The class name, e.g. "ServerboundSwingPacket".

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`name`](/newgen/api/net/minecraft/network/protocol/packet.md#name)

***

#### operation

> `readonly` **operation**: `string`

What happened: ADD, REMOVE, UPDATE\_PROGRESS, UPDATE\_NAME, UPDATE\_STYLE or UPDATE\_PROPERTIES.

***

#### overlay

> `readonly` **overlay**: [`BossBarOverlay`](/newgen/api/enum_types/bossbaroverlay.md)

The bar segmentation, set by ADD and UPDATE\_STYLE.

***

#### playMusic

> `readonly` **playMusic**: `boolean`

True when the bar plays boss music, set by ADD and UPDATE\_PROPERTIES.

***

#### progress

> `readonly` **progress**: `number`

The fill from 0 to 1, set by ADD and UPDATE\_PROGRESS.

***

#### serverbound

> `readonly` **serverbound**: `boolean`

True for packets the client sends, false for ones it receives.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`serverbound`](/newgen/api/net/minecraft/network/protocol/packet.md#serverbound)

***

#### title

> `readonly` **title**: `string`

The title, set by ADD and UPDATE\_NAME.

***

#### uuid

> `readonly` **uuid**: `string`

The boss bar's UUID as a string.
