use of net.technicpack.solder.io.FullModpacks in project LauncherV3 by TechnicPack.
the class HttpSolderApi method internalGetPublicSolderPacks.
@Override
public Collection<SolderPackInfo> internalGetPublicSolderPacks(String solderRoot, ISolderApi packFactory) throws RestfulAPIException {
LinkedList<SolderPackInfo> allPackApis = new LinkedList<SolderPackInfo>();
String allPacksUrl = solderRoot + "modpack?include=full&cid=" + clientId;
FullModpacks technic = RestObject.getRestObject(FullModpacks.class, allPacksUrl);
for (SolderPackInfo info : technic.getModpacks().values()) {
ISolderPackApi solder = packFactory.getSolderPack(solderRoot, info.getName(), technic.getMirrorUrl());
info.setSolder(solder);
allPackApis.add(info);
}
return allPackApis;
}
Aggregations