Enum Class Rarity
- All Implemented Interfaces:
Serializable,Comparable<Rarity>,Constable
Represents a rarity used in a Cosmetic, Completion, or anything else.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the common rarity.Represents the epic rarity.Represents the legendary rarity.Represents the mythical rarity.Represents the occasional rarity.Represents the rare rarity.Represents the special rarity.Represents the ultra rarity.Represents the uncommon rarity. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringFetches the Rarity's prefix, to mimic the Rarity Color.booleanWhether this rarity has a visible Completion Requirement.@NotNull StringtoString()static RarityReturns the enum constant of this class with the specified name.static Rarity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMON
Represents the common rarity. -
OCCASIONAL
Represents the occasional rarity. -
UNCOMMON
Represents the uncommon rarity. -
RARE
Represents the rare rarity. -
EPIC
Represents the epic rarity. -
LEGENDARY
Represents the legendary rarity. -
MYTHICAL
Represents the mythical rarity. -
ULTRA
Represents the ultra rarity. -
SPECIAL
Represents the special rarity. This rarity is the only one with no visible requirements.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
-
getPrefix
Fetches the Rarity's prefix, to mimic the Rarity Color.- Returns:
- Rarity Prefix
-
hasVisibleRequirements
public boolean hasVisibleRequirements()Whether this rarity has a visible Completion Requirement.- Returns:
- true if requirement is visible, false otherwise
-