Package io.artificial.enchantments.api
Enum Class EnchantmentDefinition.Rarity
java.lang.Object
java.lang.Enum<EnchantmentDefinition.Rarity>
io.artificial.enchantments.api.EnchantmentDefinition.Rarity
- All Implemented Interfaces:
Serializable,Comparable<EnchantmentDefinition.Rarity>,Constable
- Enclosing interface:
EnchantmentDefinition
Rarity tiers for enchantments, affecting trading and loot weights.
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantmentDefinition.RarityReturns the enum constant of this class with the specified name.static EnchantmentDefinition.Rarity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMON
Common enchantments appear frequently in trading and loot -
UNCOMMON
Uncommon enchantments appear less frequently -
RARE
Rare enchantments appear infrequently -
VERY_RARE
Very rare enchantments are hard to find
-
-
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
-