public enum EnumRarity extends java.lang.Enum<EnumRarity> implements IRarity
Modifier and Type | Field and Description |
---|---|
TextFormatting |
rarityColor |
java.lang.String |
rarityName |
Modifier and Type | Method and Description |
---|---|
TextFormatting |
getColor() |
java.lang.String |
getName() |
static EnumRarity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumRarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumRarity COMMON
public static final EnumRarity UNCOMMON
public static final EnumRarity RARE
public static final EnumRarity EPIC
public final TextFormatting rarityColor
public final java.lang.String rarityName
public static EnumRarity[] values()
for (EnumRarity c : EnumRarity.values()) System.out.println(c);
public static EnumRarity 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 TextFormatting getColor()