public static ModInstance convertString(String line)
    {

        String[] modString = line.split(";");
        fileType type = fileType.General;
        downloadType dType = downloadType.URL;
        try
        {
            int var2 = Integer.parseInt(modString[1]);
            type = fileType.values()[var2];
        }
        catch (Exception e)
        {
            if(modString[1].equalsIgnoreCase("mods"))
            {
                type = fileType.General;
            }
            if(modString[1].equalsIgnoreCase("core"))
            {
                type = fileType.Core;
            }
            if(modString[1].equalsIgnoreCase("jar"))
            {
                type = fileType.Jar;
            }
        }
        try
        {
            int var3 = Integer.parseInt(modString[2]);
            dType = downloadType.values()[var3];
        }
        catch (Exception e)
        {
            if(modString[2].equalsIgnoreCase("url"))
            {
                dType = downloadType.URL;
            }
            if(modString[2].equalsIgnoreCase("ftp"))
            {
                dType = downloadType.FTP;
            }
            if(modString[2].equalsIgnoreCase("sftp"))
            {
                dType = downloadType.SFTP;
            }
        }
        return new ModInstance(modString[0], type, dType, modString[3]);

    }