Class ObjectiveCriteria
java.lang.Object
net.minecraft.world.scores.criteria.ObjectiveCriteria
- Direct Known Subclasses:
Stat
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ObjectiveCriteria
static final ObjectiveCriteria
private static final Map
<String, ObjectiveCriteria> private static final Map
<String, ObjectiveCriteria> static final ObjectiveCriteria
static final ObjectiveCriteria
static final ObjectiveCriteria
static final ObjectiveCriteria
static final ObjectiveCriteria
static final ObjectiveCriteria
static final ObjectiveCriteria
static final ObjectiveCriteria[]
static final ObjectiveCriteria
private final String
private final boolean
private final ObjectiveCriteria.RenderType
static final ObjectiveCriteria[]
static final ObjectiveCriteria
-
Constructor Summary
ModifierConstructorDescriptionprotected
ObjectiveCriteria
(String p_83606_) protected
ObjectiveCriteria
(String p_83608_, boolean p_83609_, ObjectiveCriteria.RenderType p_83610_) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<ObjectiveCriteria> getName()
private static <T> Optional
<ObjectiveCriteria> getStat
(StatType<T> p_83612_, ResourceLocation p_83613_) boolean
private static ObjectiveCriteria
registerCustom
(String p_166114_) private static ObjectiveCriteria
registerCustom
(String p_166110_, boolean p_166111_, ObjectiveCriteria.RenderType p_166112_)
-
Field Details
-
CUSTOM_CRITERIA
-
CRITERIA_CACHE
-
DUMMY
-
TRIGGER
-
DEATH_COUNT
-
KILL_COUNT_PLAYERS
-
KILL_COUNT_ALL
-
HEALTH
-
FOOD
-
AIR
-
ARMOR
-
EXPERIENCE
-
LEVEL
-
TEAM_KILL
-
KILLED_BY_TEAM
-
name
-
readOnly
private final boolean readOnly -
renderType
-
-
Constructor Details
-
ObjectiveCriteria
-
ObjectiveCriteria
protected ObjectiveCriteria(String p_83608_, boolean p_83609_, ObjectiveCriteria.RenderType p_83610_)
-
-
Method Details
-
registerCustom
private static ObjectiveCriteria registerCustom(String p_166110_, boolean p_166111_, ObjectiveCriteria.RenderType p_166112_) -
registerCustom
-
getCustomCriteriaNames
-
byName
-
getStat
private static <T> Optional<ObjectiveCriteria> getStat(StatType<T> p_83612_, ResourceLocation p_83613_) -
getName
-
isReadOnly
public boolean isReadOnly() -
getDefaultRenderType
-