Package net.minecraft.world.scores
Class Score
java.lang.Object
net.minecraft.world.scores.Score
- All Implemented Interfaces:
ReadOnlyScoreInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Componentprivate booleanstatic final com.mojang.serialization.MapCodec<Score> private NumberFormatprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplay()voidbooleanisLocked()voidnumberFormat(NumberFormat pNumberFormat) voidsetLocked(boolean pLocked) intvalue()voidvalue(int pValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 pValue, boolean pLocked, Optional<Component> pDisplay, Optional<NumberFormat> pNumberFormat)
-
-
Method Details
-
value
public int value()- Specified by:
valuein interfaceReadOnlyScoreInfo
-
value
public void value(int pValue) -
isLocked
public boolean isLocked()- Specified by:
isLockedin interfaceReadOnlyScoreInfo
-
setLocked
public void setLocked(boolean pLocked) -
display
-
display
-
numberFormat
- Specified by:
numberFormatin interfaceReadOnlyScoreInfo
-
numberFormat
-