BossBarOverlay

interface BossBarOverlay

Properties

Link copied to clipboard
abstract val centerX: Float?

At which x-coordinate the Component should be centered at. Gui-scale affected. Can be null if they shouldn't be centered.

Link copied to clipboard
abstract val component: Component

The Component of this BossBarOverlay.

Link copied to clipboard
abstract val offset: Int

The vertical offset of this overlay, relative to the offset of the BossBarOverlayCompound. Gui-scale affected.

Functions

Link copied to clipboard
open fun getVerticalRange(locale: String): IntRange

Gets the vertical range of this overlay in pixels, relative from the offset position.

Link copied to clipboard
open fun getWidth(locale: String): Float

Gets the width of the Component in pixels.