ScoreboardObjective
A plugin-owned numeric scoreboard objective.
Bedriox\Api\Scoreboard\ScoreboardObjective
classBedriox\Api\Scoreboard
Public methods
__construct(string $id, Closure $state, Closure $setDisplayName, Closure $getScore, Closure $setScore, Closure $showTo, Closure $hideFrom, Closure $isShowingTo, Closure $remove)Typed public method.
getId(): stringTyped public method.
getDisplayName(): stringTyped public method.
setDisplayName(string $displayName): voidTyped public method.
getScore(Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|string $holder): ?intTyped public method.
setScore(Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|string $holder, int $score): voidTyped public method.
addScore(Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|string $holder, int $amount): intTyped public method.
subtractScore(Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|string $holder, int $amount): intTyped public method.
resetScore(Bedriox\Api\Player\Player|Bedriox\Api\Entity\Entity|string $holder): boolTyped public method.
showTo(Bedriox\Api\Player\Player $player, Bedriox\Api\Scoreboard\ScoreboardDisplaySlot $slot = \Bedriox\Api\Scoreboard\ScoreboardDisplaySlot::SIDEBAR, Bedriox\Api\Scoreboard\ScoreboardSortOrder $sortOrder = \Bedriox\Api\Scoreboard\ScoreboardSortOrder::DESCENDING): voidTyped public method.
hideFrom(Bedriox\Api\Player\Player $player, Bedriox\Api\Scoreboard\ScoreboardDisplaySlot $slot = \Bedriox\Api\Scoreboard\ScoreboardDisplaySlot::SIDEBAR): voidTyped public method.
isShowingTo(Bedriox\Api\Player\Player $player, Bedriox\Api\Scoreboard\ScoreboardDisplaySlot $slot = \Bedriox\Api\Scoreboard\ScoreboardDisplaySlot::SIDEBAR): boolTyped public method.
isRemoved(): boolTyped public method.
remove(): voidTyped public method.
static validateDisplayName(string $displayName): voidTyped public method.
Constants
MAXIMUM_DISPLAY_NAME_BYTESMAXIMUM_FAKE_NAME_BYTESMINIMUM_SCOREMAXIMUM_SCORE
