MCPcopy Create free account
hub / github.com/Card-Forge/forge / fromSet

Method fromSet

forge-core/src/main/java/forge/item/FatPack.java:30–37  ·  view source on GitHub ↗
(final CardEdition edition)

Source from the content-addressed store, hash-verified

28
29public class FatPack extends BoxedProduct {
30 public static FatPack fromSet(final CardEdition edition) {
31 int boosters = edition.getFatPackCount();
32 if (boosters <= 0) { return null; }
33
34 FatPack.Template d = new Template(edition);
35 if (null == StaticData.instance().getBoosters().get(d.getEdition())) { return null; }
36 return new FatPack(edition.getName(), d, d.cntBoosters);
37 }
38
39 private final FatPack.Template fpData;
40

Callers 1

readFatPackMethod · 0.95

Calls 6

instanceMethod · 0.95
getFatPackCountMethod · 0.80
getBoostersMethod · 0.80
getMethod · 0.65
getEditionMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected