Here are the examples of the java api de.teamlapen.lib.lib.config.forge.ConfigCategory.setComment() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
12
View Complete Implementation : ModCompatLoader.java
Copyright GNU Lesser General Public License v3.0
Author : TeamLapen
Copyright GNU Lesser General Public License v3.0
Author : TeamLapen
private void prepareModCompats(File configDir) {
if (availableModCompats == null) {
LOGGER.warn("Trying to load mod compat twice");
return;
}
config = new Configuration(new File(configDir, configName));
List<IModCompat> loaded = new LinkedList<>();
for (IModCompat modCompat : availableModCompats) {
if (isModLoaded(modCompat)) {
ConfigCategory compatCat = config.getCategory(modCompat.getModID());
compatCat.setComment("Configure mod compatibility between Vampirism and " + modCompat.getModID());
if (config.getBoolean("enable_compat_" + modCompat.getModID(), compatCat.getName(), true, "If the compatibility for this mod should be loaded")) {
loaded.add(modCompat);
LOGGER.trace(LogUtil.COMPAT, "Prepared {} compatibility", modCompat.getModID());
}
}
}
if (config.hasChanged()) {
config.save();
}
loadedModCompats = loaded;
availableModCompats = null;
}