BossBarDesc

@ConfigSerializable
data class BossBarDesc(val progress: Float = 1.0f, val color: BossBar.Color = BossBar.Color.WHITE, val overlay: BossBar.Overlay = BossBar.Overlay.PROGRESS)

Descriptor from which a BossBar can be created.

Parameters

progress

progress of the bar.

color

the bar color.

overlay

The segment overlay of the bar.

Constructors

Link copied to clipboard
constructor(progress: Float = 1.0f, color: BossBar.Color = BossBar.Color.WHITE, overlay: BossBar.Overlay = BossBar.Overlay.PROGRESS)

Properties

Link copied to clipboard
val color: BossBar.Color
Link copied to clipboard
val overlay: BossBar.Overlay
Link copied to clipboard
val progress: Float = 1.0f

Functions

Link copied to clipboard
fun create(name: Component): BossBar

Creates a boss bar with the given descriptor and name.