Enum EnchantmentTier
- java.lang.Object
-
- java.lang.Enum<EnchantmentTier>
-
- me.boboballoon.enhancedenchantments.enchantment.EnchantmentTier
-
- All Implemented Interfaces:
Serializable
,Comparable<EnchantmentTier>
public enum EnchantmentTier extends Enum<EnchantmentTier>
Represents a tier of an enchantment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatColor
getColor()
Returns the chat color of the enchantment tierint
getLevels()
Returns the amount of exp levels required to get an enchantment of this tierint
getTier()
Returns the tier number of the enchantment tier (magic number)static EnchantmentTier
valueOf(String name)
Returns the enum constant of this type with the specified name.static EnchantmentTier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMON
public static final EnchantmentTier COMMON
-
UNCOMMON
public static final EnchantmentTier UNCOMMON
-
RARE
public static final EnchantmentTier RARE
-
EPIC
public static final EnchantmentTier EPIC
-
LEGENDARY
public static final EnchantmentTier LEGENDARY
-
MYTHIC
public static final EnchantmentTier MYTHIC
-
-
Method Detail
-
values
public static EnchantmentTier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EnchantmentTier c : EnchantmentTier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnchantmentTier valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTier
public int getTier()
Returns the tier number of the enchantment tier (magic number)- Returns:
- the tier number of the enchantment tier (magic number)
-
getColor
public ChatColor getColor()
Returns the chat color of the enchantment tier- Returns:
- chat color of the enchantment tier
-
getLevels
public int getLevels()
Returns the amount of exp levels required to get an enchantment of this tier- Returns:
- the amount of exp levels required to get an enchantment of this tier
-
-