MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / loadResources

Method loadResources

src/main/java/net/optifine/Lang.java:49–73  ·  view source on GitHub ↗
(IResourcePack rp, String[] files, Map localeProperties)

Source from the content-addressed store, hash-verified

47 }
48
49 private static void loadResources(IResourcePack rp, String[] files, Map localeProperties)
50 {
51 try
52 {
53 for (int i = 0; i < files.length; ++i)
54 {
55 String s = files[i];
56 ResourceLocation resourcelocation = new ResourceLocation(s);
57
58 if (rp.resourceExists(resourcelocation))
59 {
60 InputStream inputstream = rp.getInputStream(resourcelocation);
61
62 if (inputstream != null)
63 {
64 loadLocaleData(inputstream, localeProperties);
65 }
66 }
67 }
68 }
69 catch (IOException ioexception)
70 {
71 ioexception.printStackTrace();
72 }
73 }
74
75 public static void loadLocaleData(InputStream is, Map localeProperties) throws IOException
76 {

Callers 1

resourcesReloadedMethod · 0.95

Calls 3

loadLocaleDataMethod · 0.95
resourceExistsMethod · 0.65
getInputStreamMethod · 0.65

Tested by

no test coverage detected