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

Method getAsset

forge-gui-mobile/src/forge/assets/ImageCache.java:344–348  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

342 }
343
344 private Texture getAsset(File file) {
345 if (file == null)
346 return null;
347 return Forge.getAssets().manager().get(file.getPath(), Texture.class, false);
348 }
349
350 private Texture loadAsset(String imageKey, File file, boolean others) {
351 if (file == null)

Callers 2

getImageMethod · 0.95
loadAssetMethod · 0.95

Calls 4

getAssetsMethod · 0.95
managerMethod · 0.80
getMethod · 0.65
getPathMethod · 0.45

Tested by

no test coverage detected