Class ScoreboardCriterion

java.lang.Object
net.minecraft.scoreboard.ScoreboardCriterion
Direct Known Subclasses:
Stat

public class ScoreboardCriterion
extends Object
Mappings:
Namespace Name
official djv
intermediary net/minecraft/class_274
named net/minecraft/scoreboard/ScoreboardCriterion
  • Field Details

    • CRITERIA

      public static final Map<String,​ScoreboardCriterion> CRITERIA
      A map of all scoreboard criteria by their names. Updated automatically in the constructor.
      Mappings:
      Namespace Name Mixin selector
      official a Ldjv;a:Ljava/util/Map;
      intermediary field_1455 Lnet/minecraft/class_274;field_1455:Ljava/util/Map;
      named CRITERIA Lnet/minecraft/scoreboard/ScoreboardCriterion;CRITERIA:Ljava/util/Map;
    • DUMMY

      public static final ScoreboardCriterion DUMMY
      Mappings:
      Namespace Name Mixin selector
      official b Ldjv;b:Ldjv;
      intermediary field_1468 Lnet/minecraft/class_274;field_1468:Lnet/minecraft/class_274;
      named DUMMY Lnet/minecraft/scoreboard/ScoreboardCriterion;DUMMY:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • TRIGGER

      public static final ScoreboardCriterion TRIGGER
      Mappings:
      Namespace Name Mixin selector
      official c Ldjv;c:Ldjv;
      intermediary field_1462 Lnet/minecraft/class_274;field_1462:Lnet/minecraft/class_274;
      named TRIGGER Lnet/minecraft/scoreboard/ScoreboardCriterion;TRIGGER:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • DEATH_COUNT

      public static final ScoreboardCriterion DEATH_COUNT
      Mappings:
      Namespace Name Mixin selector
      official d Ldjv;d:Ldjv;
      intermediary field_1456 Lnet/minecraft/class_274;field_1456:Lnet/minecraft/class_274;
      named DEATH_COUNT Lnet/minecraft/scoreboard/ScoreboardCriterion;DEATH_COUNT:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • PLAYER_KILL_COUNT

      public static final ScoreboardCriterion PLAYER_KILL_COUNT
      Mappings:
      Namespace Name Mixin selector
      official e Ldjv;e:Ldjv;
      intermediary field_1463 Lnet/minecraft/class_274;field_1463:Lnet/minecraft/class_274;
      named PLAYER_KILL_COUNT Lnet/minecraft/scoreboard/ScoreboardCriterion;PLAYER_KILL_COUNT:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • TOTAL_KILL_COUNT

      public static final ScoreboardCriterion TOTAL_KILL_COUNT
      Mappings:
      Namespace Name Mixin selector
      official f Ldjv;f:Ldjv;
      intermediary field_1457 Lnet/minecraft/class_274;field_1457:Lnet/minecraft/class_274;
      named TOTAL_KILL_COUNT Lnet/minecraft/scoreboard/ScoreboardCriterion;TOTAL_KILL_COUNT:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • HEALTH

      public static final ScoreboardCriterion HEALTH
      Mappings:
      Namespace Name Mixin selector
      official g Ldjv;g:Ldjv;
      intermediary field_1453 Lnet/minecraft/class_274;field_1453:Lnet/minecraft/class_274;
      named HEALTH Lnet/minecraft/scoreboard/ScoreboardCriterion;HEALTH:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • FOOD

      public static final ScoreboardCriterion FOOD
      Mappings:
      Namespace Name Mixin selector
      official h Ldjv;h:Ldjv;
      intermediary field_1464 Lnet/minecraft/class_274;field_1464:Lnet/minecraft/class_274;
      named FOOD Lnet/minecraft/scoreboard/ScoreboardCriterion;FOOD:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • AIR

      public static final ScoreboardCriterion AIR
      Mappings:
      Namespace Name Mixin selector
      official i Ldjv;i:Ldjv;
      intermediary field_1459 Lnet/minecraft/class_274;field_1459:Lnet/minecraft/class_274;
      named AIR Lnet/minecraft/scoreboard/ScoreboardCriterion;AIR:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • ARMOR

      public static final ScoreboardCriterion ARMOR
      Mappings:
      Namespace Name Mixin selector
      official j Ldjv;j:Ldjv;
      intermediary field_1452 Lnet/minecraft/class_274;field_1452:Lnet/minecraft/class_274;
      named ARMOR Lnet/minecraft/scoreboard/ScoreboardCriterion;ARMOR:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • XP

      public static final ScoreboardCriterion XP
      Mappings:
      Namespace Name Mixin selector
      official k Ldjv;k:Ldjv;
      intermediary field_1460 Lnet/minecraft/class_274;field_1460:Lnet/minecraft/class_274;
      named XP Lnet/minecraft/scoreboard/ScoreboardCriterion;XP:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • LEVEL

      public static final ScoreboardCriterion LEVEL
      Mappings:
      Namespace Name Mixin selector
      official l Ldjv;l:Ldjv;
      intermediary field_1465 Lnet/minecraft/class_274;field_1465:Lnet/minecraft/class_274;
      named LEVEL Lnet/minecraft/scoreboard/ScoreboardCriterion;LEVEL:Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • TEAM_KILLS

      public static final ScoreboardCriterion[] TEAM_KILLS
      Mappings:
      Namespace Name Mixin selector
      official m Ldjv;m:[Ldjv;
      intermediary field_1466 Lnet/minecraft/class_274;field_1466:[Lnet/minecraft/class_274;
      named TEAM_KILLS Lnet/minecraft/scoreboard/ScoreboardCriterion;TEAM_KILLS:[Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • KILLED_BY_TEAMS

      public static final ScoreboardCriterion[] KILLED_BY_TEAMS
      Mappings:
      Namespace Name Mixin selector
      official n Ldjv;n:[Ldjv;
      intermediary field_1458 Lnet/minecraft/class_274;field_1458:[Lnet/minecraft/class_274;
      named KILLED_BY_TEAMS Lnet/minecraft/scoreboard/ScoreboardCriterion;KILLED_BY_TEAMS:[Lnet/minecraft/scoreboard/ScoreboardCriterion;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official o Ldjv;o:Ljava/lang/String;
      intermediary field_1454 Lnet/minecraft/class_274;field_1454:Ljava/lang/String;
      named name Lnet/minecraft/scoreboard/ScoreboardCriterion;name:Ljava/lang/String;
    • readOnly

      private final boolean readOnly
      Mappings:
      Namespace Name Mixin selector
      official p Ldjv;p:Z
      intermediary field_1461 Lnet/minecraft/class_274;field_1461:Z
      named readOnly Lnet/minecraft/scoreboard/ScoreboardCriterion;readOnly:Z
    • defaultRenderType

      private final ScoreboardCriterion.RenderType defaultRenderType
      Mappings:
      Namespace Name Mixin selector
      official q Ldjv;q:Ldjv$a;
      intermediary field_1467 Lnet/minecraft/class_274;field_1467:Lnet/minecraft/class_274$class_275;
      named defaultRenderType Lnet/minecraft/scoreboard/ScoreboardCriterion;defaultRenderType:Lnet/minecraft/scoreboard/ScoreboardCriterion$RenderType;
  • Constructor Details

    • ScoreboardCriterion

      public ScoreboardCriterion​(String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldjv;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_274;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/scoreboard/ScoreboardCriterion;<init>(Ljava/lang/String;)V
    • ScoreboardCriterion

      protected ScoreboardCriterion​(String name, boolean readOnly, ScoreboardCriterion.RenderType defaultRenderType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldjv;<init>(Ljava/lang/String;ZLdjv$a;)V
      intermediary <init> Lnet/minecraft/class_274;<init>(Ljava/lang/String;ZLnet/minecraft/class_274$class_275;)V
      named <init> Lnet/minecraft/scoreboard/ScoreboardCriterion;<init>(Ljava/lang/String;ZLnet/minecraft/scoreboard/ScoreboardCriterion$RenderType;)V
  • Method Details

    • getOrCreateStatCriterion

      public static Optional<ScoreboardCriterion> getOrCreateStatCriterion​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Ldjv;a(Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_1224 Lnet/minecraft/class_274;method_1224(Ljava/lang/String;)Ljava/util/Optional;
      named getOrCreateStatCriterion Lnet/minecraft/scoreboard/ScoreboardCriterion;getOrCreateStatCriterion(Ljava/lang/String;)Ljava/util/Optional;
    • getOrCreateStatCriterion

      private static <T> Optional<ScoreboardCriterion> getOrCreateStatCriterion​(StatType<T> statType, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Ldjv;a(Laep;Lwb;)Ljava/util/Optional;
      intermediary method_1223 Lnet/minecraft/class_274;method_1223(Lnet/minecraft/class_3448;Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named getOrCreateStatCriterion Lnet/minecraft/scoreboard/ScoreboardCriterion;getOrCreateStatCriterion(Lnet/minecraft/stat/StatType;Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official c Ldjv;c()Ljava/lang/String;
      intermediary method_1225 Lnet/minecraft/class_274;method_1225()Ljava/lang/String;
      named getName Lnet/minecraft/scoreboard/ScoreboardCriterion;getName()Ljava/lang/String;
    • isReadOnly

      public boolean isReadOnly()
      Mappings:
      Namespace Name Mixin selector
      official d Ldjv;d()Z
      intermediary method_1226 Lnet/minecraft/class_274;method_1226()Z
      named isReadOnly Lnet/minecraft/scoreboard/ScoreboardCriterion;isReadOnly()Z
    • getDefaultRenderType

      public ScoreboardCriterion.RenderType getDefaultRenderType()
      Mappings:
      Namespace Name Mixin selector
      official e Ldjv;e()Ldjv$a;
      intermediary method_1227 Lnet/minecraft/class_274;method_1227()Lnet/minecraft/class_274$class_275;
      named getDefaultRenderType Lnet/minecraft/scoreboard/ScoreboardCriterion;getDefaultRenderType()Lnet/minecraft/scoreboard/ScoreboardCriterion$RenderType;