Class ScoreboardScore

java.lang.Object
net.minecraft.scoreboard.ScoreboardScore
All Implemented Interfaces:
ReadableScoreboardScore

public class ScoreboardScore extends Object implements ReadableScoreboardScore
Mappings:
Namespace Name
named net/minecraft/scoreboard/ScoreboardScore
intermediary net/minecraft/class_267
official fcz
  • Field Details

    • SCORE_NBT_KEY

      private static final String SCORE_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SCORE_NBT_KEY Lnet/minecraft/scoreboard/ScoreboardScore;SCORE_NBT_KEY:Ljava/lang/String;
      intermediary field_47530 Lnet/minecraft/class_267;field_47530:Ljava/lang/String;
      official a Lfcz;a:Ljava/lang/String;
    • LOCKED_NBT_KEY

      private static final String LOCKED_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOCKED_NBT_KEY Lnet/minecraft/scoreboard/ScoreboardScore;LOCKED_NBT_KEY:Ljava/lang/String;
      intermediary field_47531 Lnet/minecraft/class_267;field_47531:Ljava/lang/String;
      official b Lfcz;b:Ljava/lang/String;
    • DISPLAY_NBT_KEY

      private static final String DISPLAY_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DISPLAY_NBT_KEY Lnet/minecraft/scoreboard/ScoreboardScore;DISPLAY_NBT_KEY:Ljava/lang/String;
      intermediary field_47532 Lnet/minecraft/class_267;field_47532:Ljava/lang/String;
      official c Lfcz;c:Ljava/lang/String;
    • FORMAT_NBT_KEY

      private static final String FORMAT_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FORMAT_NBT_KEY Lnet/minecraft/scoreboard/ScoreboardScore;FORMAT_NBT_KEY:Ljava/lang/String;
      intermediary field_47533 Lnet/minecraft/class_267;field_47533:Ljava/lang/String;
      official d Lfcz;d:Ljava/lang/String;
    • score

      private 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 e Lfcz;e:I
    • locked

      private 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 f Lfcz;f:Z
    • displayText

      @Nullable private @Nullable Text 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 g Lfcz;g:Lxv;
    • numberFormat

      @Nullable private @Nullable NumberFormat 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 h Lfcz;h:Lzl;
  • Constructor Details

    • ScoreboardScore

      public ScoreboardScore()
  • Method Details

    • getScore

      public int getScore()
      Specified by:
      getScore in 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 Lfcy;a()I
    • setScore

      public 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 Lfcz;a(I)V
    • isLocked

      public boolean isLocked()
      Specified by:
      isLocked in 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 Lfcy;b()Z
    • setLocked

      public 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 Lfcz;a(Z)V
    • getDisplayText

      @Nullable public @Nullable Text 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 Lfcz;d()Lxv;
    • setDisplayText

      public void setDisplayText(@Nullable @Nullable Text text)
      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 Lfcz;a(Lxv;)V
    • getNumberFormat

      @Nullable public @Nullable NumberFormat getNumberFormat()
      Specified by:
      getNumberFormat in 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 Lfcy;c()Lzl;
    • setNumberFormat

      public void setNumberFormat(@Nullable @Nullable NumberFormat numberFormat)
      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 Lfcz;b(Lzl;)V
    • toNbt

      public NbtCompound toNbt(RegistryWrapper.WrapperLookup registries)
      Mappings:
      Namespace Name Mixin selector
      named toNbt Lnet/minecraft/scoreboard/ScoreboardScore;toNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_55408 Lnet/minecraft/class_267;method_55408(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Lfcz;a(Ljs$a;)Lux;
    • fromNbt

      public static ScoreboardScore fromNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Mappings:
      Namespace Name Mixin selector
      named fromNbt Lnet/minecraft/scoreboard/ScoreboardScore;fromNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/scoreboard/ScoreboardScore;
      intermediary method_55403 Lnet/minecraft/class_267;method_55403(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_267;
      official a Lfcz;a(Lux;Ljs$a;)Lfcz;