Class GlowScore

java.lang.Object
net.glowstone.scoreboard.GlowScore
All Implemented Interfaces:
org.bukkit.scoreboard.Score

public final class GlowScore extends Object implements org.bukkit.scoreboard.Score
Implementation/data holder for Scores.
  • Constructor Details

  • Method Details

    • getScoreboard

      public org.bukkit.scoreboard.Scoreboard getScoreboard()
      Specified by:
      getScoreboard in interface org.bukkit.scoreboard.Score
    • getPlayer

      @Deprecated public org.bukkit.OfflinePlayer getPlayer()
      Deprecated.
      Specified by:
      getPlayer in interface org.bukkit.scoreboard.Score
    • getScore

      public int getScore() throws IllegalStateException
      Specified by:
      getScore in interface org.bukkit.scoreboard.Score
      Throws:
      IllegalStateException
    • setScore

      public void setScore(int score) throws IllegalStateException
      Sets this score's value.
      Specified by:
      setScore in interface org.bukkit.scoreboard.Score
      Parameters:
      score - the new value
      Throws:
      IllegalStateException - if the objective is not registered on a scoreboard
    • isScoreSet

      public boolean isScoreSet() throws IllegalStateException
      Specified by:
      isScoreSet in interface org.bukkit.scoreboard.Score
      Throws:
      IllegalStateException
    • getLocked

      public boolean getLocked()
    • getObjective

      public GlowObjective getObjective()
      Specified by:
      getObjective in interface org.bukkit.scoreboard.Score
    • getEntry

      public String getEntry()
      Specified by:
      getEntry in interface org.bukkit.scoreboard.Score
    • setLocked

      public void setLocked(boolean locked)