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

Method getImage

forge-gui-mobile/src/forge/assets/ImageCache.java:160–168  ·  view source on GitHub ↗
(InventoryItem ii)

Source from the content-addressed store, hash-verified

158 }
159
160 public Texture getImage(InventoryItem ii) {
161 boolean useDefault = ii instanceof DeckProxy;
162 String imageKey = ii.getImageKey(false);
163 if (imageKey != null) {
164 if (imageKey.startsWith(ImageKeys.CARD_PREFIX) || imageKey.startsWith(ImageKeys.TOKEN_PREFIX))
165 return getImage(ii.getImageKey(false), useDefault, false);
166 }
167 return getImage(ii.getImageKey(false), true, true);
168 }
169
170 /**
171 * retrieve an icon from the cache. returns the current skin's ICO_UNKNOWN if the icon image is not found

Callers 15

getIconMethod · 0.95
preloadCacheMethod · 0.95
drawMethod · 0.45
setAchievementsMethod · 0.45
drawBackgroundMethod · 0.45
drawMethod · 0.45
tapMethod · 0.45
longPressMethod · 0.45
drawValueMethod · 0.45
getCardArtMethod · 0.45
getAlternateCardArtMethod · 0.45

Calls 15

getPreferencesMethod · 0.95
getCardAltImageKeyMethod · 0.95
getImageKeyMethod · 0.95
getCardImageKeyMethod · 0.95
getCardImageKeyMethod · 0.95
getDefaultImageMethod · 0.95
getImageFileMethod · 0.95
getAssetMethod · 0.95
loadAssetMethod · 0.95
getRadiusMethod · 0.95

Tested by

no test coverage detected