net.minecraft.scoreboard

public class ScoreboardCriterion

net.minecraft.world.scores.criteria.ObjectiveCriteria
net.minecraft.world.scores.criteria.ObjectiveCriteria
net.minecraft.class_274
net.minecraft.scoreboard.ScoreboardCriterion

Field summary

Modifier and TypeField
private static final Map<String, ScoreboardCriterion>
CUSTOM_CRITERIA
CUSTOM_CRITERIA
field_33939
SIMPLE_CRITERIA
private static final Map<String, ScoreboardCriterion>
CRITERIA_CACHE
CRITERIA_CACHE
field_1455
CRITERIA
public static final com.mojang.serialization.Codec<ScoreboardCriterion>
CODEC
CODEC
field_56492
CODEC
public static final ScoreboardCriterion
DUMMY
DUMMY
field_1468
DUMMY
public static final ScoreboardCriterion
TRIGGER
TRIGGER
field_1462
TRIGGER
public static final ScoreboardCriterion
DEATH_COUNT
DEATH_COUNT
field_1456
DEATH_COUNT
public static final ScoreboardCriterion
KILL_COUNT_PLAYERS
KILL_COUNT_PLAYERS
field_1463
PLAYER_KILL_COUNT
public static final ScoreboardCriterion
KILL_COUNT_ALL
KILL_COUNT_ALL
field_1457
TOTAL_KILL_COUNT
public static final ScoreboardCriterion
HEALTH
HEALTH
field_1453
HEALTH
public static final ScoreboardCriterion
FOOD
FOOD
field_1464
FOOD
public static final ScoreboardCriterion
AIR
AIR
field_1459
AIR
public static final ScoreboardCriterion
ARMOR
ARMOR
field_1452
ARMOR
public static final ScoreboardCriterion
EXPERIENCE
EXPERIENCE
field_1460
XP
public static final ScoreboardCriterion
LEVEL
LEVEL
field_1465
LEVEL
public static final Map<TeamColor, ScoreboardCriterion>
TEAM_KILL
TEAM_KILL
field_1466
TEAM_KILLS
public static final Map<TeamColor, ScoreboardCriterion>
KILLED_BY_TEAM
KILLED_BY_TEAM
field_1458
KILLED_BY_TEAMS
private final String
name
name
field_1454
name
private final boolean
readOnly
readOnly
field_1461
readOnly
private final ScoreboardCriterion$RenderType
renderType
renderType
field_1467
defaultRenderType

Constructor summary

ModifierConstructor
protected (String name)
protected (String name, boolean readOnly, ScoreboardCriterion$RenderType defaultRenderType)

Method summary

Modifier and TypeMethod
private static Map<TeamColor, ScoreboardCriterion>
registerForEveryTeamColor(Function<TeamColor, String> idFactory)
registerForEveryTeamColor(Function<TeamColor, String> idFactory)
method_1_5257(Function<class_1_851, String> arg0)
byColor(Function<TeamColor, String> nameFunction)
private static ScoreboardCriterion
registerCustom(String name, boolean readOnly, ObjectiveCriteria$RenderType renderType)
registerCustom(String name, boolean readOnly, ObjectiveCriteria$RenderType renderType)
method_37269(String arg0, boolean arg1, class_274$class_275 arg2)
create(String name, boolean readOnly, ScoreboardCriterion$RenderType defaultRenderType)
private static ScoreboardCriterion
registerCustom(String name)
registerCustom(String name)
method_37270(String arg0)
create(String name)
public static Set<String>
getCustomCriteriaNames()
getCustomCriteriaNames()
method_37271()
getAllSimpleCriteria()
public static Optional<ScoreboardCriterion>
byName(String name)
byName(String name)
method_1224(String arg0)
getOrCreateStatCriterion(String name)
private static <T> Optional<ScoreboardCriterion>
getStat(StatType<T> statType, Identifier key)
getStat(StatType<T> statType, Identifier key)
method_1223(class_3448<T> arg0, class_2960 arg1)
getOrCreateStatCriterion(StatType<T> statType, Identifier id)
public String
getName()
getName()
method_1225()
getName()
public boolean
isReadOnly()
isReadOnly()
method_1226()
isReadOnly()
public ScoreboardCriterion$RenderType
getDefaultRenderType()
getDefaultRenderType()
method_1227()
getDefaultRenderType()