DefaultBossBarHandle

constructor(title: (Player) -> Component, progress: (Player) -> Float, bar: BossBar, plugin: Plugin?, refreshInterval: Ticks?, visibilityCondition: (Player) -> Boolean?)

Parameters

title

A function that provides the title component for a player.

progress

A function that provides the progress value (0.0 to 1.0) for a player.

bar

The BossBar instance to manage.

plugin

The plugin instance for scheduling updates (optional).

refreshInterval

The interval at which the bar should refresh (optional).

visibilityCondition

A predicate that determines if the bar should be visible to a player (optional).