Package net.minecraft.scoreboard
Class Score
- java.lang.Object
-
- net.minecraft.scoreboard.Score
-
public class Score extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private boolean
forceUpdate
private boolean
locked
private ScoreObjective
objective
private java.lang.String
owner
static java.util.Comparator<Score>
SCORE_COMPARATOR
private Scoreboard
scoreboard
-
Constructor Summary
Constructors Constructor Description Score(Scoreboard p_i2309_1_, ScoreObjective p_i2309_2_, java.lang.String p_i2309_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int p_96649_1_)
ScoreObjective
getObjective()
java.lang.String
getOwner()
int
getScore()
Scoreboard
getScoreboard()
void
increment()
boolean
isLocked()
void
reset()
void
setLocked(boolean p_178815_1_)
void
setScore(int p_96647_1_)
-
-
-
Field Detail
-
SCORE_COMPARATOR
public static final java.util.Comparator<Score> SCORE_COMPARATOR
-
scoreboard
private final Scoreboard scoreboard
-
objective
@Nullable private final ScoreObjective objective
-
owner
private final java.lang.String owner
-
count
private int count
-
locked
private boolean locked
-
forceUpdate
private boolean forceUpdate
-
-
Constructor Detail
-
Score
public Score(Scoreboard p_i2309_1_, ScoreObjective p_i2309_2_, java.lang.String p_i2309_3_)
-
-
Method Detail
-
add
public void add(int p_96649_1_)
-
increment
public void increment()
-
getScore
public int getScore()
-
reset
public void reset()
-
setScore
public void setScore(int p_96647_1_)
-
getObjective
@Nullable public ScoreObjective getObjective()
-
getOwner
public java.lang.String getOwner()
-
getScoreboard
public Scoreboard getScoreboard()
-
isLocked
public boolean isLocked()
-
setLocked
public void setLocked(boolean p_178815_1_)
-
-