I was wondering what the current standard for implementing config files into mods. I am unable to find any tutorials or documentation on how to implement a config (.cfg) file.
If anyone is able to point me to a tutorial or documentation page that I overlooked it would be greatly appreciated.
Thank you for your time!
I don't know if there is any documentation, but at least half the mods you play with are configurable - you find their source code and look at it.
there is really no way to explaining this other than dumping a bit of code:
public class OptionsHolder
public static class Common
private static final int defaultInt1 = 37;
private static final boolean defaultBool1 = true;
public final ConfigValue<Integer> Int1;
public final ConfigValue<Boolean> Bool1;