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

Method fromSet

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

Source from the content-addressed store, hash-verified

28public class BoosterBox extends BoxedProduct {
29
30 public static BoosterBox fromSet(CardEdition edition) {
31 if (edition.getBoosterBoxCount() <= 0) {
32 return null;
33 }
34 BoosterBox.Template d = new Template(edition);
35 return new BoosterBox(edition.getName(), d, d.cntBoosters);
36 }
37
38 private final BoosterBox.Template fpData;
39

Callers 2

readBoosterBoxMethod · 0.95

Calls 2

getBoosterBoxCountMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected