MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / load

Method load

src/main/java/emu/grasscutter/data/DataLoader.java:27–29  ·  view source on GitHub ↗

Load a data file by its name. If the file isn't found within the /data directory then it will fallback to the default within the jar resources @param resourcePath The path to the data file to be loaded. @return InputStream of the data file. @throws FileNotFoundException @see #load(String, boolean)

(String resourcePath)

Source from the content-addressed store, hash-verified

25 * @see #load(String, boolean)
26 */
27 public static InputStream load(String resourcePath) throws FileNotFoundException {
28 return load(resourcePath, true);
29 }
30
31 /**
32 * Load a data file by its name.

Callers 15

loadMethod · 0.95
loadMethod · 0.95
loadShopMethod · 0.95
loadShopChestMethod · 0.95
loadShopChestBatchUseMethod · 0.95
initializeMethod · 0.95
loadConfigMethod · 0.95
initializeMethod · 0.95
loadChestConfigMethod · 0.95
initializeMethod · 0.95
loadMethod · 0.95

Calls 3

fileExistsMethod · 0.95
readResourceAsStreamMethod · 0.95
DATAMethod · 0.80

Tested by

no test coverage detected