Package net.minecraft.scoreboard
Class ScoreboardCriterion
java.lang.Object
net.minecraft.scoreboard.ScoreboardCriterion
- Direct Known Subclasses:
Stat
public class ScoreboardCriterion extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScoreboardCriterion.RenderType -
Field Summary
Fields Modifier and Type Field Description static ScoreboardCriterionAIRstatic ScoreboardCriterionARMORprivate ScoreboardCriterion.RenderTypecriterionTypestatic ScoreboardCriterionDEATH_COUNTstatic ScoreboardCriterionDUMMYstatic ScoreboardCriterionFOODstatic ScoreboardCriterionHEALTHstatic ScoreboardCriterion[]KILLED_BY_TEAMSstatic ScoreboardCriterionLEVELprivate Stringnamestatic Map<String,ScoreboardCriterion>OBJECTIVESstatic ScoreboardCriterionPLAYER_KILL_COUNTprivate booleanreadOnlystatic ScoreboardCriterion[]TEAM_KILLSstatic ScoreboardCriterionTOTAL_KILL_COUNTstatic ScoreboardCriterionTRIGGERstatic ScoreboardCriterionXP -
Constructor Summary
Constructors Modifier Constructor Description ScoreboardCriterion(String name)protectedScoreboardCriterion(String name, boolean readOnly, ScoreboardCriterion.RenderType renderType) -
Method Summary
Modifier and Type Method Description static Optional<ScoreboardCriterion>createStatCriterion(String name)private static <T> Optional<ScoreboardCriterion>createStatCriterion(StatType<T> statType, Identifier id)ScoreboardCriterion.RenderTypegetCriterionType()StringgetName()booleanisReadOnly()
-
Field Details
-
OBJECTIVES
-
DUMMY
-
TRIGGER
-
DEATH_COUNT
-
PLAYER_KILL_COUNT
-
TOTAL_KILL_COUNT
-
HEALTH
-
FOOD
-
AIR
-
ARMOR
-
XP
-
LEVEL
-
TEAM_KILLS
-
KILLED_BY_TEAMS
-
name
-
readOnly
private final boolean readOnly -
criterionType
-
-
Constructor Details
-
ScoreboardCriterion
-
ScoreboardCriterion
protected ScoreboardCriterion(String name, boolean readOnly, ScoreboardCriterion.RenderType renderType)
-
-
Method Details
-
createStatCriterion
-
createStatCriterion
private static <T> Optional<ScoreboardCriterion> createStatCriterion(StatType<T> statType, Identifier id) -
getName
-
isReadOnly
public boolean isReadOnly() -
getCriterionType
-