bossBar
Creates and returns a BossBarHandle using a DSL.
Example usage:
val handle = bossBar(Component.text("Boss Health")) {
progress { player -> getBossHealth(player) }
color(BossBar.Color.RED)
overlay(BossBar.Overlay.PROGRESS)
}
handle.show(player)Return
A new BossBarHandle.
Parameters
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a title.
Return
A new BossBarHandle.
Parameters
The title of the boss bar.
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a dynamic title.
Return
A new BossBarHandle.
Parameters
A function providing the title of the boss bar.
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with auto-refresh enabled.
Return
A new BossBarHandle.
Parameters
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a title and auto-refresh.
Return
A new BossBarHandle.
Parameters
The title of the boss bar.
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a dynamic title and auto-refresh.
Return
A new BossBarHandle.
Parameters
A function providing the title of the boss bar.
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a specific refresh interval.
Receiver
The plugin instance.
Return
A new BossBarHandle.
Parameters
The interval at which the boss bar should refresh.
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a specific refresh interval and title.
Receiver
The plugin instance.
Return
A new BossBarHandle.
Parameters
The interval at which the boss bar should refresh.
The title of the boss bar.
The builder block to configure the boss bar.
Creates and returns a BossBarHandle with a specific refresh interval and dynamic title.
Receiver
The plugin instance.
Return
A new BossBarHandle.
Parameters
The interval at which the boss bar should refresh.
A function providing the title of the boss bar.
The builder block to configure the boss bar.