ScoreboardApi
ScoreboardApi is the entry point for the scoreboard and boss bar system. It manages Handle instances and provides access to the ScoreboardFactory.
Functions
Link copied to clipboard
Destroys all registered handles. Recommended to be called in the plugin's onDisable method.
Link copied to clipboard
Retrieves the current factory instance.
Link copied to clipboard
Finds the current factory instance if it matches the specified type.
Link copied to clipboard
Retrieves the current factory instance, cast to the specified type.
Link copied to clipboard
Initializes the ScoreboardApi. This must be called before using other methods to enable automatic cleanup.
Link copied to clipboard
Unregisters a Handle from the API.