Class ScoreboardCriterion

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

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

    • SIMPLE_CRITERIA

      private static final Map<String,ScoreboardCriterion> SIMPLE_CRITERIA
      A map of all scoreboard criteria that can be identified with a single keyword (as opposed to combined words) by their names. Updated automatically in create(String, boolean, ScoreboardCriterion.RenderType).
      Mappings:
      Namespace Name Mixin selector
      named SIMPLE_CRITERIA Lnet/minecraft/scoreboard/ScoreboardCriterion;SIMPLE_CRITERIA:Ljava/util/Map;
      intermediary field_33939 Lnet/minecraft/class_274;field_33939:Ljava/util/Map;
      official a Lewz;a:Ljava/util/Map;
    • CRITERIA

      private 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
      named CRITERIA Lnet/minecraft/scoreboard/ScoreboardCriterion;CRITERIA:Ljava/util/Map;
      intermediary field_1455 Lnet/minecraft/class_274;field_1455:Ljava/util/Map;
      official o Lewz;o:Ljava/util/Map;
    • DUMMY

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • ScoreboardCriterion

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

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

    • create

      private static ScoreboardCriterion create(String name, boolean readOnly, ScoreboardCriterion.RenderType defaultRenderType)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/scoreboard/ScoreboardCriterion;create(Ljava/lang/String;ZLnet/minecraft/scoreboard/ScoreboardCriterion$RenderType;)Lnet/minecraft/scoreboard/ScoreboardCriterion;
      intermediary method_37269 Lnet/minecraft/class_274;method_37269(Ljava/lang/String;ZLnet/minecraft/class_274$class_275;)Lnet/minecraft/class_274;
      official a Lewz;a(Ljava/lang/String;ZLewz$a;)Lewz;
    • create

      private static ScoreboardCriterion create(String name)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/scoreboard/ScoreboardCriterion;create(Ljava/lang/String;)Lnet/minecraft/scoreboard/ScoreboardCriterion;
      intermediary method_37270 Lnet/minecraft/class_274;method_37270(Ljava/lang/String;)Lnet/minecraft/class_274;
      official b Lewz;b(Ljava/lang/String;)Lewz;
    • getAllSimpleCriteria

      public static Set<String> getAllSimpleCriteria()
      Mappings:
      Namespace Name Mixin selector
      named getAllSimpleCriteria Lnet/minecraft/scoreboard/ScoreboardCriterion;getAllSimpleCriteria()Ljava/util/Set;
      intermediary method_37271 Lnet/minecraft/class_274;method_37271()Ljava/util/Set;
      official c Lewz;c()Ljava/util/Set;
    • getOrCreateStatCriterion

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

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

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

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

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