Search in sources :

Example 1 with FullModpacks

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;
}
Also used : ISolderPackApi(net.technicpack.solder.ISolderPackApi) FullModpacks(net.technicpack.solder.io.FullModpacks) SolderPackInfo(net.technicpack.solder.io.SolderPackInfo) LinkedList(java.util.LinkedList)

Aggregations

LinkedList (java.util.LinkedList)1 ISolderPackApi (net.technicpack.solder.ISolderPackApi)1 FullModpacks (net.technicpack.solder.io.FullModpacks)1 SolderPackInfo (net.technicpack.solder.io.SolderPackInfo)1