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

Method initialize

src/main/java/net/optifine/DynamicLights.java:101–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 private static void initialize()
102 {
103 initialized = true;
104 mapEntityLightLevels.clear();
105 mapItemLightLevels.clear();
106 String[] astring = ReflectorForge.getForgeModIds();
107
108 for (int i = 0; i < astring.length; ++i)
109 {
110 String s = astring[i];
111
112 try
113 {
114 ResourceLocation resourcelocation = new ResourceLocation(s, "optifine/dynamic_lights.properties");
115 InputStream inputstream = Config.getResourceStream(resourcelocation);
116 loadModConfiguration(inputstream, resourcelocation.toString(), s);
117 }
118 catch (IOException var5)
119 {
120 ;
121 }
122 }
123
124 if (mapEntityLightLevels.size() > 0)
125 {
126 Config.dbg("DynamicLights entities: " + mapEntityLightLevels.size());
127 }
128
129 if (mapItemLightLevels.size() > 0)
130 {
131 Config.dbg("DynamicLights items: " + mapItemLightLevels.size());
132 }
133 }
134
135 private static void loadModConfiguration(InputStream in, String path, String modId)
136 {

Callers 1

updateMethod · 0.95

Calls 7

getForgeModIdsMethod · 0.95
getResourceStreamMethod · 0.95
loadModConfigurationMethod · 0.95
toStringMethod · 0.95
dbgMethod · 0.95
clearMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected