public enum Difficulty extends java.lang.Enum<Difficulty>
| Modifier and Type | Field and Description | 
|---|---|
private int | 
id  | 
private static Difficulty[] | 
ID_MAPPING  | 
private java.lang.String | 
translationKey  | 
| Modifier and Type | Method and Description | 
|---|---|
static Difficulty | 
byId(int id)  | 
static Difficulty | 
byName(java.lang.String nameIn)  | 
ITextComponent | 
getDisplayName()  | 
int | 
getId()  | 
java.lang.String | 
getTranslationKey()  | 
static Difficulty | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static Difficulty[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Difficulty PEACEFUL
public static final Difficulty EASY
public static final Difficulty NORMAL
public static final Difficulty HARD
private static final Difficulty[] ID_MAPPING
private final int id
private final java.lang.String translationKey
public static Difficulty[] values()
for (Difficulty c : Difficulty.values()) System.out.println(c);
public static Difficulty valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getId()
public ITextComponent getDisplayName()
public static Difficulty byId(int id)
@Nullable public static Difficulty byName(java.lang.String nameIn)
public java.lang.String getTranslationKey()