Search in sources :

Example 6 with PackInfo

use of net.technicpack.rest.io.PackInfo in project LauncherV3 by TechnicPack.

the class SinglePlatformSource method getPublicPacks.

@Override
public Collection<PackInfo> getPublicPacks() {
    ArrayList<PackInfo> packs = new ArrayList<PackInfo>(1);
    PackInfo info = getPlatformPackInfo(slug);
    if (info != null) {
        packs.add(info);
    }
    return packs;
}
Also used : PackInfo(net.technicpack.rest.io.PackInfo) ArrayList(java.util.ArrayList)

Example 7 with PackInfo

use of net.technicpack.rest.io.PackInfo in project LauncherV3 by TechnicPack.

the class PlatformPackInfoRepository method getPlatformPackInfo.

protected PackInfo getPlatformPackInfo(String slug) {
    try {
        PackInfo info = null;
        PlatformPackInfo platformInfo = platform.getPlatformPackInfoForBulk(slug);
        info = getInfoFromPlatformInfo(platformInfo);
        return info;
    } catch (RestfulAPIException ex) {
        Utils.getLogger().log(Level.WARNING, "Unable to load platform pack " + slug, ex);
        return null;
    }
}
Also used : RestfulAPIException(net.technicpack.rest.RestfulAPIException) PlatformPackInfo(net.technicpack.platform.io.PlatformPackInfo) PackInfo(net.technicpack.rest.io.PackInfo) PlatformPackInfo(net.technicpack.platform.io.PlatformPackInfo) CombinedPackInfo(net.technicpack.launchercore.modpacks.packinfo.CombinedPackInfo) SolderPackInfo(net.technicpack.solder.io.SolderPackInfo)

Aggregations

PackInfo (net.technicpack.rest.io.PackInfo)7 RestfulAPIException (net.technicpack.rest.RestfulAPIException)3 ArrayList (java.util.ArrayList)2 CombinedPackInfo (net.technicpack.launchercore.modpacks.packinfo.CombinedPackInfo)2 PlatformPackInfo (net.technicpack.platform.io.PlatformPackInfo)2 File (java.io.File)1 HashMap (java.util.HashMap)1 Pattern (java.util.regex.Pattern)1 ModpackWidget (net.technicpack.launcher.ui.controls.modpacks.ModpackWidget)1 CacheDeleteException (net.technicpack.launchercore.exception.CacheDeleteException)1 Version (net.technicpack.launchercore.install.Version)1 MD5FileVerifier (net.technicpack.launchercore.install.verifiers.MD5FileVerifier)1 ValidZipFileVerifier (net.technicpack.launchercore.install.verifiers.ValidZipFileVerifier)1 IJavaVersion (net.technicpack.launchercore.launch.java.IJavaVersion)1 IPackSource (net.technicpack.launchercore.modpacks.sources.IPackSource)1 MojangVersion (net.technicpack.minecraftcore.mojang.version.MojangVersion)1 SearchResult (net.technicpack.platform.io.SearchResult)1 SearchResultsData (net.technicpack.platform.io.SearchResultsData)1 Modpack (net.technicpack.rest.io.Modpack)1 ISolderPackApi (net.technicpack.solder.ISolderPackApi)1