Class GlowScoreboard

java.lang.Object
net.glowstone.scoreboard.GlowScoreboard
All Implemented Interfaces:
org.bukkit.scoreboard.Scoreboard

public final class GlowScoreboard extends Object implements org.bukkit.scoreboard.Scoreboard
Scoreboard implementation.
  • Constructor Details

    • GlowScoreboard

      public GlowScoreboard()
  • Method Details

    • subscribe

      public void subscribe(GlowPlayer player)
      Send a player this scoreboard's contents and subscribe them to future changes.
      Parameters:
      player - The player to subscribe.
    • unsubscribe

      public void unsubscribe(GlowPlayer player)
      Clear the player's scoreboard contents and unsubscribe them from future changes.
      Parameters:
      player - The player to unsubscribe.
    • registerNewObjective

      public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria) throws IllegalArgumentException
      Specified by:
      registerNewObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • registerNewObjective

      @NotNull public @NotNull org.bukkit.scoreboard.Objective registerNewObjective(@NotNull @NotNull String s, @NotNull @NotNull String s1, @Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalArgumentException
      Specified by:
      registerNewObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • registerNewObjective

      @NotNull public @NotNull org.bukkit.scoreboard.Objective registerNewObjective(@NotNull @NotNull String s, @NotNull @NotNull String s1, @Nullable @Nullable net.kyori.adventure.text.Component component, @NotNull @NotNull org.bukkit.scoreboard.RenderType renderType) throws IllegalArgumentException
      Specified by:
      registerNewObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • registerNewObjective

      public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria, String displayName) throws IllegalArgumentException
      Specified by:
      registerNewObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • registerNewObjective

      public org.bukkit.scoreboard.Objective registerNewObjective(String name, String criteria, String displayName, org.bukkit.scoreboard.RenderType renderType) throws IllegalArgumentException
      Specified by:
      registerNewObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getObjective

      public org.bukkit.scoreboard.Objective getObjective(String name) throws IllegalArgumentException
      Specified by:
      getObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getObjective

      public org.bukkit.scoreboard.Objective getObjective(org.bukkit.scoreboard.DisplaySlot slot) throws IllegalArgumentException
      Specified by:
      getObjective in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getObjectivesByCriteria

      public Set<org.bukkit.scoreboard.Objective> getObjectivesByCriteria(String criteria) throws IllegalArgumentException
      Specified by:
      getObjectivesByCriteria in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getObjectives

      public Set<org.bukkit.scoreboard.Objective> getObjectives()
      Specified by:
      getObjectives in interface org.bukkit.scoreboard.Scoreboard
    • clearSlot

      public void clearSlot(org.bukkit.scoreboard.DisplaySlot slot) throws IllegalArgumentException
      Specified by:
      clearSlot in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • registerNewTeam

      public org.bukkit.scoreboard.Team registerNewTeam(String name) throws IllegalArgumentException
      Specified by:
      registerNewTeam in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getPlayerTeam

      public org.bukkit.scoreboard.Team getPlayerTeam(org.bukkit.OfflinePlayer player) throws IllegalArgumentException
      Specified by:
      getPlayerTeam in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getEntryTeam

      public org.bukkit.scoreboard.Team getEntryTeam(String entry) throws IllegalArgumentException
      Specified by:
      getEntryTeam in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getTeam

      public org.bukkit.scoreboard.Team getTeam(String teamName) throws IllegalArgumentException
      Specified by:
      getTeam in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getTeams

      public Set<org.bukkit.scoreboard.Team> getTeams()
      Specified by:
      getTeams in interface org.bukkit.scoreboard.Scoreboard
    • getEntries

      public Set<String> getEntries()
      Specified by:
      getEntries in interface org.bukkit.scoreboard.Scoreboard
    • getScores

      public Set<org.bukkit.scoreboard.Score> getScores(String entry) throws IllegalArgumentException
      Specified by:
      getScores in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getScores

      public Set<org.bukkit.scoreboard.Score> getScores(org.bukkit.OfflinePlayer player) throws IllegalArgumentException
      Specified by:
      getScores in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • resetScores

      public void resetScores(String entry) throws IllegalArgumentException
      Specified by:
      resetScores in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • resetScores

      public void resetScores(org.bukkit.OfflinePlayer player) throws IllegalArgumentException
      Specified by:
      resetScores in interface org.bukkit.scoreboard.Scoreboard
      Throws:
      IllegalArgumentException
    • getPlayers

      public Set<org.bukkit.OfflinePlayer> getPlayers()
      Specified by:
      getPlayers in interface org.bukkit.scoreboard.Scoreboard