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 Details

    • getTeam

      AbstractTeam getTeam(String name)
      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

      void removeTeam(String name)
      Deletes a team from this scoreboard.
      Parameters:
      name - Name of the team.
    • createTeam

      AbstractTeam createTeam(String name)
      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.