Enum EnchantmentTier

    • 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 name
        NullPointerException - 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