Class ObjectiveCriteria
java.lang.Object
net.minecraft.world.scores.criteria.ObjectiveCriteria
- Direct Known Subclasses:
Stat
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic ObjectiveCriteria
static ObjectiveCriteria
private static Map<String,ObjectiveCriteria>
private static Map<String,ObjectiveCriteria>
static ObjectiveCriteria
static ObjectiveCriteria
static ObjectiveCriteria
static ObjectiveCriteria
static ObjectiveCriteria
static ObjectiveCriteria
static ObjectiveCriteria
static ObjectiveCriteria[]
static ObjectiveCriteria
private String
private boolean
private ObjectiveCriteria.RenderType
static ObjectiveCriteria[]
static 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
-