public class Score
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Score> |
SCORE_COMPARATOR |
Constructor and Description |
---|
Score(Scoreboard scoreboard,
ScoreObjective objective,
java.lang.String playerName) |
Modifier and Type | Method and Description |
---|---|
void |
decreaseScore(int amount) |
ScoreObjective |
getObjective() |
java.lang.String |
getPlayerName() |
int |
getScorePoints() |
Scoreboard |
getScoreScoreboard() |
void |
increaseScore(int amount) |
void |
incrementScore() |
boolean |
isLocked() |
void |
setLocked(boolean locked) |
void |
setScorePoints(int points) |
public static final java.util.Comparator<Score> SCORE_COMPARATOR
public Score(Scoreboard scoreboard, ScoreObjective objective, java.lang.String playerName)
public void increaseScore(int amount)
public void decreaseScore(int amount)
public void incrementScore()
public int getScorePoints()
public void setScorePoints(int points)
public ScoreObjective getObjective()
public java.lang.String getPlayerName()
public Scoreboard getScoreScoreboard()
public boolean isLocked()
public void setLocked(boolean locked)