Config Module
class ConfigModule(name: String, keyCode: Int = 0, category: Category = Category.MISC, toggled: Boolean = false, settings: ArrayList<Setting<*>> = ArrayList(), description: String = "") : Module
A dummy implementation of the Module class.
This class is made to be used as a dummy class for gson to use when reading the module config.
Author
Aton
Constructors
Functions
Link copied to clipboard
Adds all settings in the input to the settings field of the module. This is required for saving and loading these settings to / from a file. Keep in mind, that these settings are passed by reference, which will get lost if the original setting is reassigned.
Link copied to clipboard
Link copied to clipboard
Triggers the module initialization.
Link copied to clipboard
Loads self registering elements of the module such as hud elements.
Link copied to clipboard
This method will be run on the FMLLoadCompleteEvent on game startup after the config is loaded.