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

Method putCard

forge-core/src/main/java/forge/card/CardDb.java:1217–1219  ·  view source on GitHub ↗
(CardRules rules)

Source from the content-addressed store, hash-verified

1215 private boolean immediateReindex = true;
1216
1217 public CardRules putCard(CardRules rules) {
1218 return putCard(rules, null); /* will use data from editions folder */
1219 }
1220
1221 public CardRules putCard(CardRules rules, List<Pair<String, CardRarity>> whenItWasPrinted) {
1222 // works similarly to Map<K,V>, returning prev. value

Callers 1

saveChangesMethod · 0.80

Calls 15

getNameMethod · 0.95
reinitializeFromRulesMethod · 0.95
getCardInSetMethod · 0.95
getOrderedEditionsMethod · 0.80
reIndexMethod · 0.80
getNameMethod · 0.65
getMethod · 0.65
isEmptyMethod · 0.65
addMethod · 0.65
equalsMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected