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

Method resourcesReloaded

src/main/java/net/optifine/Lang.java:24–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 private static final Pattern pattern = Pattern.compile("%(\\d+\\$)?[\\d\\.]*[df]");
23
24 public static void resourcesReloaded()
25 {
26 Map map = I18n.getLocaleProperties();
27 List<String> list = new ArrayList();
28 String s = "optifine/lang/";
29 String s1 = "en_US";
30 String s2 = ".lang";
31 list.add(s + s1 + s2);
32
33 if (!Config.getGameSettings().language.equals(s1))
34 {
35 list.add(s + Config.getGameSettings().forceUnicodeFont + s2);
36 }
37
38 String[] astring = (String[])((String[])list.toArray(new String[list.size()]));
39 loadResources(Config.getDefaultResourcePack(), astring, map);
40 IResourcePack[] airesourcepack = Config.getResourcePacks();
41
42 for (int i = 0; i < airesourcepack.length; ++i)
43 {
44 IResourcePack iresourcepack = airesourcepack[i];
45 loadResources(iresourcepack, astring, map);
46 }
47 }
48
49 private static void loadResources(IResourcePack rp, String[] files, Map localeProperties)
50 {

Callers 1

resourcesReloadedMethod · 0.95

Calls 9

getLocalePropertiesMethod · 0.95
getGameSettingsMethod · 0.95
loadResourcesMethod · 0.95
getResourcePacksMethod · 0.95
addMethod · 0.45
equalsMethod · 0.45
toArrayMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected