net.minecraftforge.common.config.Config.Type Java Examples

The following examples show how to use net.minecraftforge.common.config.Config.Type. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Signals.java    From Signals with GNU General Public License v3.0 5 votes vote down vote up
@EventHandler
public void postInit(FMLPostInitializationEvent event){
    proxy.postInit();
    RailManager.getInstance().initializeAPIImplementors(asmData);
    SignalsConfig.client.networkVisualization.initDefaults();
    ConfigManager.sync(Constants.MOD_ID, Type.INSTANCE);
}
 
Example #2
Source File: SignalsConfig.java    From Signals with GNU General Public License v3.0 5 votes vote down vote up
@SubscribeEvent
public static void onConfigChangedEvent(OnConfigChangedEvent event){
    if(event.getModID().equals(Constants.MOD_ID)) {
        ConfigManager.sync(Constants.MOD_ID, Type.INSTANCE);
        if(!enableRailNetwork) {
            Log.warning("RAIL NETWORK IS NOT FUNCTIONAL!");
        }
    }
}
 
Example #3
Source File: CommonProxy.java    From GregTech with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SubscribeEvent
public static void syncConfigValues(ConfigChangedEvent.OnConfigChangedEvent event) {
    if (event.getModID().equals(GTValues.MODID)) {
        ConfigManager.sync(GTValues.MODID, Type.INSTANCE);
    }
}
 
Example #4
Source File: VSConfig.java    From Valkyrien-Skies with Apache License 2.0 4 votes vote down vote up
/**
 * Synchronizes the data in this class and the data in the forge configuration
 */
public static void sync() {
    ConfigManager.sync(ValkyrienSkiesMod.MOD_ID, Type.INSTANCE);

    VSConfig.onSync();
}