(IResourcePack rp, String[] files, Map localeProperties)
| 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 | { |
no test coverage detected