@@ -0,0 +1,1182 @@
+package com.github.to2mbn.jmccc.mcdownloader;%0A%0Aimport com.github.to2mbn.jmccc.mcdownloader.download.DownloadCallback;%0Aimport com.github.to2mbn.jmccc.mcdownloader.download.multiple.MultipleDownloadContext;%0Aimport com.github.to2mbn.jmccc.mcdownloader.download.multiple.MultipleDownloadTask;%0A%0Apublic class RemoteVersionListDownloadTask implements MultipleDownloadTask%3CRemoteVersionList%3E %7B%0A%0A%09private MinecraftDownloadFactory downloadFactory;%0A%0A%09public RemoteVersionListDownloadTask(MinecraftDownloadFactory downloadFactory) %7B%0A%09%09this.downloadFactory = downloadFactory;%0A%09%7D%0A%0A%09@Override%0A%09public void execute(final MultipleDownloadContext%3CRemoteVersionList%3E context) throws Exception %7B%0A%09%09context.submit(downloadFactory.versionList(), new DownloadCallback%3CRemoteVersionList%3E() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void done(RemoteVersionList result) %7B%0A%09%09%09%09context.done(result);%0A%09%09%09%7D%0A%0A%09%09%09@Override%0A%09%09%09public void failed(Throwable e) %7B%0A%09%09%09%09context.failed(e);%0A%09%09%09%7D%0A%0A%09%09%09@Override%0A%09%09%09public void cancelled() %7B%0A%09%09%09%09context.cancelled();%0A%09%09%09%7D%0A%0A%09%09%09@Override%0A%09%09%09public void updateProgress(long done, long total) %7B%0A%09%09%09%7D%0A%0A%09%09%09@Override%0A%09%09%09public void retry(Throwable e, int current, int max) %7B%0A%09%09%09%7D%0A%09%09%7D, true);%0A%09%7D%0A%0A%7D%0A

add RemoteVersionListDownloadTask