MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / addIDConfig

Method addIDConfig

src/main/java/gregapi/config/Config.java:172–178  ·  view source on GitHub ↗
(Object aCategory, String aName, int aDefault)

Source from the content-addressed store, hash-verified

170 private static boolean sIDConfigNeedsSaving = F;
171
172 public static int addIDConfig(Object aCategory, String aName, int aDefault) {
173 if (UT.Code.stringInvalid(aName)) return aDefault;
174 Property tProperty = sConfigFileIDs.get(aCategory.toString().replaceAll("\\|", "."), aName.replaceAll("\\|", "."), aDefault);
175 int rResult = tProperty.getInt(aDefault);
176 if (Abstract_Mod.sFinalized >= Abstract_Mod.sModCountUsingGTAPI && !tProperty.wasRead()) sConfigFileIDs.save(); else sIDConfigNeedsSaving = T;
177 return rResult;
178 }
179}

Callers 4

Calls 5

stringInvalidMethod · 0.80
replaceAllMethod · 0.80
getMethod · 0.65
toStringMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected