public final class GlowScore extends Object implements org.bukkit.scoreboard.Score
Constructor and Description |
---|
GlowScore(GlowObjective objective,
String entry) |
Modifier and Type | Method and Description |
---|---|
String |
getEntry() |
boolean |
getLocked() |
GlowObjective |
getObjective() |
org.bukkit.OfflinePlayer |
getPlayer()
Deprecated.
|
int |
getScore() |
org.bukkit.scoreboard.Scoreboard |
getScoreboard() |
boolean |
isScoreSet() |
void |
setLocked(boolean locked) |
void |
setScore(int score)
Sets this score's value.
|
public GlowScore(GlowObjective objective, String entry)
public org.bukkit.scoreboard.Scoreboard getScoreboard()
getScoreboard
in interface org.bukkit.scoreboard.Score
@Deprecated public org.bukkit.OfflinePlayer getPlayer()
getPlayer
in interface org.bukkit.scoreboard.Score
public int getScore() throws IllegalStateException
getScore
in interface org.bukkit.scoreboard.Score
IllegalStateException
public void setScore(int score) throws IllegalStateException
setScore
in interface org.bukkit.scoreboard.Score
score
- the new valueIllegalStateException
- if the objective is not registered on a scoreboardpublic boolean isScoreSet() throws IllegalStateException
isScoreSet
in interface org.bukkit.scoreboard.Score
IllegalStateException
public boolean getLocked()
public GlowObjective getObjective()
getObjective
in interface org.bukkit.scoreboard.Score
public String getEntry()
getEntry
in interface org.bukkit.scoreboard.Score
public void setLocked(boolean locked)
Copyright © 2021. All rights reserved.