MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / loadSkin

Method loadSkin

src/main/java/Colors/ColorTheme.java:299–311  ·  view source on GitHub ↗
(String skinF, int resourceT)

Source from the content-addressed store, hash-verified

297 }
298
299 public static void loadSkin(String skinF, int resourceT){
300 skinFile=skinF;
301 resourceType=resourceT;
302 try {
303 for (Enumeration r=colorsContainer.elements(); r.hasMoreElements();) {
304 ColorItem c=(ColorItem)r.nextElement();
305 c.color=loadInt(c.name, c.color);
306 }
307 saveToStorage();
308 } catch (Exception e) { }
309 skin=null;
310 skinFile=null;
311 }
312
313 private static int loadInt(String key, int defaultColor) {
314 if (skin==null) {

Callers 3

menuActionMethod · 0.95
BrowserFilePathNotifyMethod · 0.95
userThemeFromJarMethod · 0.95

Calls 3

loadIntMethod · 0.95
saveToStorageMethod · 0.95
elementsMethod · 0.80

Tested by

no test coverage detected