Package net.minecraft.world.scores
Class Score
java.lang.Object
net.minecraft.world.scores.Score
- All Implemented Interfaces:
ReadOnlyScoreInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Component
private boolean
static final com.mojang.serialization.MapCodec
<Score> private NumberFormat
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplay()
void
boolean
isLocked()
void
numberFormat
(NumberFormat pNumberFormat) void
setLocked
(boolean pLocked) int
value()
void
value
(int pValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.scores.ReadOnlyScoreInfo
formatValue
-
Field Details
-
MAP_CODEC
-
value
private int value -
locked
private boolean locked -
display
-
numberFormat
-
-
Constructor Details
-
Score
public Score() -
Score
private Score(int p_401349_, boolean p_401055_, Optional<Component> p_401170_, Optional<NumberFormat> p_401099_)
-
-
Method Details
-
value
public int value()- Specified by:
value
in interfaceReadOnlyScoreInfo
-
value
public void value(int pValue) -
isLocked
public boolean isLocked()- Specified by:
isLocked
in interfaceReadOnlyScoreInfo
-
setLocked
public void setLocked(boolean pLocked) -
display
-
display
-
numberFormat
- Specified by:
numberFormat
in interfaceReadOnlyScoreInfo
-
numberFormat
-