The preload method's purpose is to call the static initializer of the config class. As explained in the java-doc:
As configs HAVE to be initialized before your mod loader's post-init, instances need to be created before that.
Hence, this method exists so config instances which are located in the actual class instead of the main mod class can be created.
Related Issue(s)
Checklist
[x] I made a clear description of what was changed
[x] I stated why these changes were necessary
[x] I updated documentation or said what needs to be updated
[x] I made sure these changes are backwards compatible
Description
The
preload
method's purpose is to call the static initializer of the config class. As explained in the java-doc:Related Issue(s)
Checklist