Package net.minecraft.scoreboard
Class ScoreboardScore
java.lang.Object
net.minecraft.scoreboard.ScoreboardScore
- All Implemented Interfaces:
- ReadableScoreboardScore
- Mappings:
- Namespace - Name - named - net/minecraft/scoreboard/ScoreboardScore- intermediary - net/minecraft/class_267- official - fhe
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ScoreboardScore> private booleanprivate @Nullable NumberFormatprivate int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateScoreboardScore(int score, boolean locked, Optional<Text> displayText, Optional<NumberFormat> numberFormat) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetScore()booleanisLocked()voidsetDisplayText(@Nullable Text text) voidsetLocked(boolean locked) voidsetNumberFormat(@Nullable NumberFormat numberFormat) voidsetScore(int score) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.scoreboard.ReadableScoreboardScoregetFormattedScore
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/scoreboard/ScoreboardScore;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_56483- Lnet/minecraft/class_267;field_56483:Lcom/mojang/serialization/MapCodec;- official - a- Lfhe;a:Lcom/mojang/serialization/MapCodec;
 
- 
scoreprivate int score- Mappings:
- Namespace - Name - Mixin selector - named - score- Lnet/minecraft/scoreboard/ScoreboardScore;score:I- intermediary - field_47534- Lnet/minecraft/class_267;field_47534:I- official - b- Lfhe;b:I
 
- 
lockedprivate boolean locked- Mappings:
- Namespace - Name - Mixin selector - named - locked- Lnet/minecraft/scoreboard/ScoreboardScore;locked:Z- intermediary - field_1411- Lnet/minecraft/class_267;field_1411:Z- official - c- Lfhe;c:Z
 
- 
displayText- Mappings:
- Namespace - Name - Mixin selector - named - displayText- Lnet/minecraft/scoreboard/ScoreboardScore;displayText:Lnet/minecraft/text/Text;- intermediary - field_47535- Lnet/minecraft/class_267;field_47535:Lnet/minecraft/class_2561;- official - d- Lfhe;d:Lxg;
 
- 
numberFormat- Mappings:
- Namespace - Name - Mixin selector - named - numberFormat- Lnet/minecraft/scoreboard/ScoreboardScore;numberFormat:Lnet/minecraft/scoreboard/number/NumberFormat;- intermediary - field_47536- Lnet/minecraft/class_267;field_47536:Lnet/minecraft/class_9022;- official - e- Lfhe;e:Lyw;
 
 
- 
- 
Constructor Details- 
ScoreboardScorepublic ScoreboardScore()
- 
ScoreboardScoreprivate ScoreboardScore(int score, boolean locked, Optional<Text> displayText, Optional<NumberFormat> numberFormat) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/scoreboard/ScoreboardScore;<init>(IZLjava/util/Optional;Ljava/util/Optional;)V- intermediary - <init>- Lnet/minecraft/class_267;<init>(IZLjava/util/Optional;Ljava/util/Optional;)V- official - <init>- Lfhe;<init>(IZLjava/util/Optional;Ljava/util/Optional;)V
 
 
- 
- 
Method Details- 
getScorepublic int getScore()- Specified by:
- getScorein interface- ReadableScoreboardScore
- Mappings:
- Namespace - Name - Mixin selector - named - getScore- Lnet/minecraft/scoreboard/ReadableScoreboardScore;getScore()I- intermediary - method_55397- Lnet/minecraft/class_9013;method_55397()I- official - a- Lfhd;a()I
 
- 
setScorepublic void setScore(int score) - Mappings:
- Namespace - Name - Mixin selector - named - setScore- Lnet/minecraft/scoreboard/ScoreboardScore;setScore(I)V- intermediary - method_55401- Lnet/minecraft/class_267;method_55401(I)V- official - a- Lfhe;a(I)V
 
- 
isLockedpublic boolean isLocked()- Specified by:
- isLockedin interface- ReadableScoreboardScore
- Mappings:
- Namespace - Name - Mixin selector - named - isLocked- Lnet/minecraft/scoreboard/ReadableScoreboardScore;isLocked()Z- intermediary - method_1131- Lnet/minecraft/class_9013;method_1131()Z- official - b- Lfhd;b()Z
 
- 
setLockedpublic void setLocked(boolean locked) - Mappings:
- Namespace - Name - Mixin selector - named - setLocked- Lnet/minecraft/scoreboard/ScoreboardScore;setLocked(Z)V- intermediary - method_1125- Lnet/minecraft/class_267;method_1125(Z)V- official - a- Lfhe;a(Z)V
 
- 
getDisplayText- Mappings:
- Namespace - Name - Mixin selector - named - getDisplayText- Lnet/minecraft/scoreboard/ScoreboardScore;getDisplayText()Lnet/minecraft/text/Text;- intermediary - method_55407- Lnet/minecraft/class_267;method_55407()Lnet/minecraft/class_2561;- official - d- Lfhe;d()Lxg;
 
- 
setDisplayText- Mappings:
- Namespace - Name - Mixin selector - named - setDisplayText- Lnet/minecraft/scoreboard/ScoreboardScore;setDisplayText(Lnet/minecraft/text/Text;)V- intermediary - method_55405- Lnet/minecraft/class_267;method_55405(Lnet/minecraft/class_2561;)V- official - a- Lfhe;a(Lxg;)V
 
- 
getNumberFormat- Specified by:
- getNumberFormatin interface- ReadableScoreboardScore
- Mappings:
- Namespace - Name - Mixin selector - named - getNumberFormat- Lnet/minecraft/scoreboard/ReadableScoreboardScore;getNumberFormat()Lnet/minecraft/scoreboard/number/NumberFormat;- intermediary - method_55400- Lnet/minecraft/class_9013;method_55400()Lnet/minecraft/class_9022;- official - c- Lfhd;c()Lyw;
 
- 
setNumberFormat- Mappings:
- Namespace - Name - Mixin selector - named - setNumberFormat- Lnet/minecraft/scoreboard/ScoreboardScore;setNumberFormat(Lnet/minecraft/scoreboard/number/NumberFormat;)V- intermediary - method_55406- Lnet/minecraft/class_267;method_55406(Lnet/minecraft/class_9022;)V- official - b- Lfhe;b(Lyw;)V
 
 
-