Package net.minecraft.scoreboard
Class ScoreCriteria
- java.lang.Object
-
- net.minecraft.scoreboard.ScoreCriteria
-
- Direct Known Subclasses:
Stat
public class ScoreCriteria extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScoreCriteria.RenderType
-
Field Summary
Fields Modifier and Type Field Description static ScoreCriteria
AIR
static ScoreCriteria
ARMOR
static java.util.Map<java.lang.String,ScoreCriteria>
CRITERIA_BY_NAME
static ScoreCriteria
DEATH_COUNT
static ScoreCriteria
DUMMY
static ScoreCriteria
EXPERIENCE
static ScoreCriteria
FOOD
static ScoreCriteria
HEALTH
static ScoreCriteria
KILL_COUNT_ALL
static ScoreCriteria
KILL_COUNT_PLAYERS
static ScoreCriteria[]
KILLED_BY_TEAM
static ScoreCriteria
LEVEL
private java.lang.String
name
private boolean
readOnly
private ScoreCriteria.RenderType
renderType
static ScoreCriteria[]
TEAM_KILL
static ScoreCriteria
TRIGGER
-
Constructor Summary
Constructors Modifier Constructor Description ScoreCriteria(java.lang.String p_i47676_1_)
protected
ScoreCriteria(java.lang.String p_i47677_1_, boolean p_i47677_2_, ScoreCriteria.RenderType p_i47677_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<ScoreCriteria>
byName(java.lang.String p_216390_0_)
ScoreCriteria.RenderType
getDefaultRenderType()
java.lang.String
getName()
private static <T> java.util.Optional<ScoreCriteria>
getStat(StatType<T> p_216391_0_, ResourceLocation p_216391_1_)
boolean
isReadOnly()
-
-
-
Field Detail
-
CRITERIA_BY_NAME
public static final java.util.Map<java.lang.String,ScoreCriteria> CRITERIA_BY_NAME
-
DUMMY
public static final ScoreCriteria DUMMY
-
TRIGGER
public static final ScoreCriteria TRIGGER
-
DEATH_COUNT
public static final ScoreCriteria DEATH_COUNT
-
KILL_COUNT_PLAYERS
public static final ScoreCriteria KILL_COUNT_PLAYERS
-
KILL_COUNT_ALL
public static final ScoreCriteria KILL_COUNT_ALL
-
HEALTH
public static final ScoreCriteria HEALTH
-
FOOD
public static final ScoreCriteria FOOD
-
AIR
public static final ScoreCriteria AIR
-
ARMOR
public static final ScoreCriteria ARMOR
-
EXPERIENCE
public static final ScoreCriteria EXPERIENCE
-
LEVEL
public static final ScoreCriteria LEVEL
-
TEAM_KILL
public static final ScoreCriteria[] TEAM_KILL
-
KILLED_BY_TEAM
public static final ScoreCriteria[] KILLED_BY_TEAM
-
name
private final java.lang.String name
-
readOnly
private final boolean readOnly
-
renderType
private final ScoreCriteria.RenderType renderType
-
-
Constructor Detail
-
ScoreCriteria
public ScoreCriteria(java.lang.String p_i47676_1_)
-
ScoreCriteria
protected ScoreCriteria(java.lang.String p_i47677_1_, boolean p_i47677_2_, ScoreCriteria.RenderType p_i47677_3_)
-
-
Method Detail
-
byName
public static java.util.Optional<ScoreCriteria> byName(java.lang.String p_216390_0_)
-
getStat
private static <T> java.util.Optional<ScoreCriteria> getStat(StatType<T> p_216391_0_, ResourceLocation p_216391_1_)
-
getName
public java.lang.String getName()
-
isReadOnly
public boolean isReadOnly()
-
getDefaultRenderType
public ScoreCriteria.RenderType getDefaultRenderType()
-
-