Package net.minecraft.scoreboard
Class ScoreboardCriterion
java.lang.Object
net.minecraft.scoreboard.ScoreboardCriterion
- Direct Known Subclasses:
Stat
- Mappings:
Namespace Name official dwt
intermediary net/minecraft/class_274
named net/minecraft/scoreboard/ScoreboardCriterion
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ScoreboardCriterion
static final ScoreboardCriterion
private static final Map<String,
ScoreboardCriterion> A map of all scoreboard criteria by their names.static final ScoreboardCriterion
private final ScoreboardCriterion.RenderType
static final ScoreboardCriterion
static final ScoreboardCriterion
static final ScoreboardCriterion
static final ScoreboardCriterion[]
static final ScoreboardCriterion
private final String
static final ScoreboardCriterion
private final boolean
private static final Map<String,
ScoreboardCriterion> A map of all scoreboard criteria that can be identified with a single keyword (as opposed to combined words) by their names.static final ScoreboardCriterion[]
static final ScoreboardCriterion
static final ScoreboardCriterion
static final ScoreboardCriterion
-
Constructor Summary
ModifierConstructorDescriptionprotected
ScoreboardCriterion
(String name) protected
ScoreboardCriterion
(String name, boolean readOnly, ScoreboardCriterion.RenderType defaultRenderType) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ScoreboardCriterion
private static ScoreboardCriterion
create
(String name, boolean readOnly, ScoreboardCriterion.RenderType defaultRenderType) getName()
static Optional<ScoreboardCriterion>
private static <T> Optional<ScoreboardCriterion>
getOrCreateStatCriterion
(StatType<T> statType, Identifier id) boolean
-
Field Details
-
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 increate(String, boolean, ScoreboardCriterion.RenderType)
.- Mappings:
Namespace Name Mixin selector official n
Ldwt;n:Ljava/util/Map;
intermediary field_33939
Lnet/minecraft/class_274;field_33939:Ljava/util/Map;
named SIMPLE_CRITERIA
Lnet/minecraft/scoreboard/ScoreboardCriterion;SIMPLE_CRITERIA:Ljava/util/Map;
-
CRITERIA
A map of all scoreboard criteria by their names. Updated automatically in the constructor.- Mappings:
Namespace Name Mixin selector official o
Ldwt;o: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
- Mappings:
Namespace Name Mixin selector official a
Ldwt;a:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official b
Ldwt;b:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official c
Ldwt;c:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official d
Ldwt;d:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official e
Ldwt;e:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official f
Ldwt;f:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official g
Ldwt;g:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official h
Ldwt;h:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official i
Ldwt;i:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official j
Ldwt;j:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official k
Ldwt;k:Ldwt;
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
- Mappings:
Namespace Name Mixin selector official l
Ldwt;l:[Ldwt;
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
- Mappings:
Namespace Name Mixin selector official m
Ldwt;m:[Ldwt;
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
- Mappings:
Namespace Name Mixin selector official p
Ldwt;p: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 q
Ldwt;q:Z
intermediary field_1461
Lnet/minecraft/class_274;field_1461:Z
named readOnly
Lnet/minecraft/scoreboard/ScoreboardCriterion;readOnly:Z
-
defaultRenderType
- Mappings:
Namespace Name Mixin selector official r
Ldwt;r:Ldwt$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
- Mappings:
Namespace Name Mixin selector official <init>
Ldwt;<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>
Ldwt;<init>(Ljava/lang/String;ZLdwt$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
-
create
private static ScoreboardCriterion create(String name, boolean readOnly, ScoreboardCriterion.RenderType defaultRenderType) - Mappings:
Namespace Name Mixin selector official a
Ldwt;a(Ljava/lang/String;ZLdwt$a;)Ldwt;
intermediary method_37269
Lnet/minecraft/class_274;method_37269(Ljava/lang/String;ZLnet/minecraft/class_274$class_275;)Lnet/minecraft/class_274;
named create
Lnet/minecraft/scoreboard/ScoreboardCriterion;create(Ljava/lang/String;ZLnet/minecraft/scoreboard/ScoreboardCriterion$RenderType;)Lnet/minecraft/scoreboard/ScoreboardCriterion;
-
create
- Mappings:
Namespace Name Mixin selector official b
Ldwt;b(Ljava/lang/String;)Ldwt;
intermediary method_37270
Lnet/minecraft/class_274;method_37270(Ljava/lang/String;)Lnet/minecraft/class_274;
named create
Lnet/minecraft/scoreboard/ScoreboardCriterion;create(Ljava/lang/String;)Lnet/minecraft/scoreboard/ScoreboardCriterion;
-
getAllSimpleCriteria
- Mappings:
Namespace Name Mixin selector official c
Ldwt;c()Ljava/util/Set;
intermediary method_37271
Lnet/minecraft/class_274;method_37271()Ljava/util/Set;
named getAllSimpleCriteria
Lnet/minecraft/scoreboard/ScoreboardCriterion;getAllSimpleCriteria()Ljava/util/Set;
-
getOrCreateStatCriterion
- Mappings:
Namespace Name Mixin selector official a
Ldwt;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
Ldwt;a(Lajn;Laaj;)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
- Mappings:
Namespace Name Mixin selector official d
Ldwt;d()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 e
Ldwt;e()Z
intermediary method_1226
Lnet/minecraft/class_274;method_1226()Z
named isReadOnly
Lnet/minecraft/scoreboard/ScoreboardCriterion;isReadOnly()Z
-
getDefaultRenderType
- Mappings:
Namespace Name Mixin selector official f
Ldwt;f()Ldwt$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;
-