Package net.minecraft.world.scores
Class Score
java.lang.Object
net.minecraft.world.scores.Score
- All Implemented Interfaces:
ReadOnlyScoreInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplay()
void
boolean
isLocked()
void
numberFormat
(NumberFormat numberFormat) static Score
read
(CompoundTag tag, HolderLookup.Provider levelRegistry) void
setLocked
(boolean locked) int
value()
void
value
(int value) write
(HolderLookup.Provider levelRegistry) 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
-
TAG_SCORE
- See Also:
-
TAG_LOCKED
- See Also:
-
TAG_DISPLAY
- See Also:
-
TAG_FORMAT
- See Also:
-
value
private int value -
locked
private boolean locked -
display
-
numberFormat
-
-
Constructor Details
-
Score
public Score()
-
-
Method Details
-
value
public int value()- Specified by:
value
in interfaceReadOnlyScoreInfo
-
value
public void value(int value) -
isLocked
public boolean isLocked()- Specified by:
isLocked
in interfaceReadOnlyScoreInfo
-
setLocked
public void setLocked(boolean locked) -
display
-
display
-
numberFormat
- Specified by:
numberFormat
in interfaceReadOnlyScoreInfo
-
numberFormat
-
write
-
read
-