public enum Rarity extends java.lang.Enum<Rarity> implements IExtensibleEnum
Modifier and Type | Field and Description |
---|---|
TextFormatting |
color |
Modifier and Type | Method and Description |
---|---|
static Rarity |
create(java.lang.String name,
TextFormatting p_i48837_3_) |
static Rarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
init
public static final Rarity COMMON
public static final Rarity UNCOMMON
public static final Rarity RARE
public static final Rarity EPIC
public final TextFormatting color
public static Rarity[] values()
for (Rarity c : Rarity.values()) System.out.println(c);
public static Rarity 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 static Rarity create(java.lang.String name, TextFormatting p_i48837_3_)