SerenityJS
    Preparing search index...
    Index

    Constructors

    • Constructs a new bossbar ui element.

      Parameters

      • boss: Entity

        The boss entity the bar is associated with. This entity can be the player itself.

      • Optionaltitle: string

        The title of the bossbar.

      • Optionalpercent: number

        The percent of the bossbar.

      • Optionalcolor: BossEventColor

        The color of the bossbar.

      Returns Bossbar

    Properties

    boss: Entity

    The boss entity the bar is associated with.

    color: BossEventColor

    The current color of the boss bar.

    occupants: Set<Player>

    A set of players that are viewing the boss bar.

    percent: number

    The current percent of the boss bar.

    title: string

    The current title of the boss bar.

    Methods

    • Hides the boss bar from a specific player.

      Parameters

      • Optionalplayer: Player

        The player to hide the bossbar from.

      Returns void

      If no player is provided, the bossbar will be hidden from all occupants.