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;
}
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;
}
}
Aggregations