public class Score
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
forceUpdate |
private boolean |
locked |
private ScoreObjective |
objective |
static java.util.Comparator<Score> |
SCORE_COMPARATOR |
private Scoreboard |
scoreboard |
private java.lang.String |
scorePlayerName |
private int |
scorePoints |
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
private final Scoreboard scoreboard
private final ScoreObjective objective
private final java.lang.String scorePlayerName
private int scorePoints
private boolean locked
private boolean forceUpdate
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)