Package net.blueva.arcade.api.ui
Interface ScoreboardAPI<P>
public interface ScoreboardAPI<P>
API for managing game scoreboards.
Supports module-specific scoreboards with automatic placeholder resolution.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearFinalScoreboard(P player) Clear any pending final-scoreboard override for the player.voidRemove scoreboard from player.voidSet custom scoreboard lines directly.voidSet custom scoreboard title.voidshowModuleFinalScoreboard(P player, String scoreboardPath) Show a module-defined final scoreboard to the player using the provided path.voidShow a module-defined final scoreboard with custom placeholders.voidshowModuleScoreboard(P player) Show module-specific scoreboard to player.voidshowScoreboard(P player, String scoreboardPath) Show custom scoreboard to player using specified path.voidUpdate scoreboard for player using module's scoreboard configuration.voidUpdate scoreboard for player using custom scoreboard path.voidUpdate scoreboard with custom path and placeholders.voidUpdate scoreboard with custom placeholders.
-
Method Details
-
update
Update scoreboard for player using module's scoreboard configuration. Automatically resolves placeholders from: - Core placeholders ({arena}, {round}, {time}, etc.) - Module custom placeholders- Parameters:
player- Player to update
-
update
Update scoreboard with custom placeholders.- Parameters:
player- Playerplaceholders- Additional placeholders to add/override
-
update
Update scoreboard for player using custom scoreboard path.- Parameters:
player- Player to updatescoreboardPath- Path to scoreboard config (e.g., "scoreboard", "scoreboards.team_red")
-
update
Update scoreboard with custom path and placeholders. -
showScoreboard
Show custom scoreboard to player using specified path. -
setTitle
Set custom scoreboard title.- Parameters:
player- Playertitle- Formatted title
-
setLines
Set custom scoreboard lines directly.- Parameters:
player- Playerlines- List of formatted lines
-
remove
Remove scoreboard from player.- Parameters:
player- Player
-
showModuleScoreboard
Show module-specific scoreboard to player. Loads title and lines from module's language file.- Parameters:
player- Player
-
showModuleFinalScoreboard
Show a module-defined final scoreboard to the player using the provided path. Intended for end-of-game views (e.g., team outcomes) that should override the default finish scoreboard.- Parameters:
player- PlayerscoreboardPath- Path in the module language file (e.g., "scoreboard.final.team_win")
-
showModuleFinalScoreboard
Show a module-defined final scoreboard with custom placeholders.- Parameters:
player- PlayerscoreboardPath- Path in the module language fileplaceholders- Additional placeholders to add/override
-
clearFinalScoreboard
Clear any pending final-scoreboard override for the player.- Parameters:
player- Player
-