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

Method getFoiled

forge-core/src/main/java/forge/item/PaperCard.java:130–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 corresponding Edition - so we could Foil even Alpha cards.
129 */
130 public PaperCard getFoiled() {
131 if (this.foil)
132 return this;
133
134 if (this.foiledVersion == null) {
135 this.foiledVersion = new PaperCard(this.rules, this.edition, this.rarity,
136 this.artIndex, true, String.valueOf(collectorNumber), this.artist, this.functionalVariant);
137 }
138 return this.foiledVersion;
139 }
140 public PaperCard getUnFoiled() {
141 if (!this.foil)
142 return this;

Callers 7

getOrLoadCommonCardMethod · 0.95
generateFoilCardMethod · 0.95
getCardFromSetMethod · 0.95
addMakeFoilMethod · 0.95

Calls 1

valueOfMethod · 0.45

Tested by

no test coverage detected