Interface AbstractScoreboard
- All Known Implementing Classes:
BukkitScoreboardImpl, FoliaScoreboardImpl
public interface AbstractScoreboard
Represents a scoreboard that can be used to manage teams and their entries.
This is an abstraction over the underlying
Scoreboard and
ScoreboardTeam objects.-
Method Summary
Modifier and TypeMethodDescriptioncreateTeam(String name) Creates a new team if it does not exist.Gets a team by name.voidremoveTeam(String name) Deletes a team from this scoreboard.
-
Method Details
-
getTeam
Gets a team by name.- Parameters:
name- Name of the team.- Returns:
- Team with the given name, or null if no such team exists.
-
removeTeam
Deletes a team from this scoreboard.- Parameters:
name- Name of the team.
-
createTeam
Creates a new team if it does not exist.- Parameters:
name- Name of the team.- Returns:
- Team with the given name, or the existing team if it already exists.
-