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

Method hasImage

forge-core/src/main/java/forge/ImageKeys.java:412–414  ·  view source on GitHub ↗
(PaperCard pc)

Source from the content-addressed store, hash-verified

410 //should only be called from PaperCard.hasImage()
411 static HashMap<String, HashSet<String>> cachedContent=new HashMap<>(50000);
412 public static boolean hasImage(PaperCard pc) {
413 return hasImage(pc, false);
414 }
415 public static boolean hasImage(PaperCard pc, boolean update) {
416 Boolean editionHasImage = editionImageLookup.get(pc.getEdition());
417 if (editionHasImage == null) {

Callers 4

hasImageMethod · 0.95
initCardImageMocksMethod · 0.95
initCardImageMocksMethod · 0.95

Calls 15

getSetFolderMethod · 0.95
instanceMethod · 0.95
getAliasMethod · 0.95
getCodeMethod · 0.95
isDirectoryWithFilesMethod · 0.95
hitCacheMethod · 0.95
containsKeyMethod · 0.80
splitMethod · 0.80
getMethod · 0.65
getEditionMethod · 0.65
addMethod · 0.65
isEmptyMethod · 0.65

Tested by 3

initCardImageMocksMethod · 0.76
initCardImageMocksMethod · 0.76