SidebarView
A lightweight player-specific projection of one shared sidebar.
Bedriox\Api\Scoreboard\SidebarView
classBedriox\Api\Scoreboard
Public methods
__construct(Bedriox\Api\Scoreboard\Sidebar $sidebar, Closure $player, Closure $state, Closure $mutate)Typed public method.
getSidebar(): Bedriox\Api\Scoreboard\SidebarTyped public method.
getPlayer(): Bedriox\Api\Player\PlayerTyped public method.
getTitle(): stringTyped public method.
setTitle(string $title): voidTyped public method.
resetTitle(): voidTyped public method.
getLines(): arrayTyped public method.
getLine(string $key): ?stringTyped public method.
setLine(string $key, string $text): voidOverrides an existing shared line or appends a player-only line.
removeLine(string $key): voidHides a line in this view without changing the shared sidebar.
resetLine(string $key): voidRemoves this player's override and restores the shared line, if one exists.
resetOverrides(): voidTyped public method.
show(): voidTyped public method.
hide(): voidTyped public method.
isShowing(): boolTyped public method.
isRemoved(): boolTyped public method.
