mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-18 11:19:20 +00:00
32 lines
781 B
Java
32 lines
781 B
Java
package mantle.lib;
|
|
|
|
import net.minecraftforge.common.Configuration;
|
|
import mantle.Mantle;
|
|
import mantle.lib.CoreRepo.*;
|
|
|
|
/**
|
|
* Mantle configuration handler
|
|
*
|
|
* Stores configuration data for Mantle, and handles save/load.
|
|
*
|
|
* @author Sunstrike <[email protected]>
|
|
*/
|
|
public class CoreConfig {
|
|
|
|
/**
|
|
* Loads state from a Forge configuration object, or saves a new file if it doesn't already exist.
|
|
*
|
|
* @param config Configuration object (usually from a location given by FML in preinit)
|
|
*/
|
|
public static void loadConfiguration(Configuration config) {
|
|
Mantle.logger.info("Loading configuration from disk.");
|
|
config.load();
|
|
|
|
// TODO: Config vars get/set here
|
|
|
|
config.save();
|
|
Mantle.logger.info("Configuration load completed.");
|
|
}
|
|
|
|
}
|