package net.minecraft.launcher.updater;
import net.minecraft.launcher.Http;
import net.minecraft.launcher.OperatingSystem;
import net.minecraft.launcher.versions.CompleteVersion;
import java.io.IOException;
import java.net.Proxy;
import java.net.URL;
public class RemoteVersionList extends VersionList {
private final Proxy proxy;
public RemoteVersionList(Proxy proxy) {
this.proxy = proxy;
}
public boolean hasAllFiles(CompleteVersion version, OperatingSystem os) {
return true;
}
protected String getContent(String path) throws IOException {
return Http.performGet(new URL("https://s3.amazonaws.com/Minecraft.Download/" + path), this.proxy);
}
public Proxy getProxy() {
return this.proxy;
}
}