Example usage for net.minecraftforge.fml.client.event ConfigChangedEvent.OnConfigChangedEvent getModID

List of usage examples for net.minecraftforge.fml.client.event ConfigChangedEvent.OnConfigChangedEvent getModID

Introduction

In this page you can find the example usage for net.minecraftforge.fml.client.event ConfigChangedEvent.OnConfigChangedEvent getModID.

Prototype

public String getModID() 

Source Link

Document

The Mod ID of the mod whose configuration just changed.

Usage

From source file:com.Axeryok.CocoaInput.CocoaInput.java

License:Apache License

@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
    if (event.getModID().equals("CocoaInput")) {
        this.syncConfig();
        ModLogger.log("Configuration has changed.");
    }/*from   w  ww  .j  a  v  a2 s .  c  om*/
}

From source file:com.robrit.snad.common.event.ConfigurationHandler.java

License:Open Source License

@SubscribeEvent
public static void onConfigurationChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
    if (event.getModID().equalsIgnoreCase(ModInformation.MOD_ID)) {
        updateConfiguration();//from   www  .  j a  va 2s .  co  m
    }
}

From source file:com.snowshock35.jeiintegration.config.Config.java

License:Open Source License

@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
    if (JEIIntegration.MOD_ID.equals(eventArgs.getModID())) {
        loadConfig();// w  ww  . j av  a  2 s .c om
    }
}

From source file:com.specialeffect.inventory.SpecialEffectInventory.java

License:Open Source License

@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
    if (eventArgs.getModID().equals(this.MODID)) {
        syncConfig();/*  w ww .java  2  s . c o  m*/
    }
    for (ChildModWithConfig child : childrenWithConfig) {
        child.syncConfig();
    }
}

From source file:com.specialeffect.mods.mining.GatherDrops.java

License:Open Source License

@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
    if (eventArgs.getModID().equals(this.MODID)) {
        syncConfig();/* w ww .  j  ava2 s. c o m*/
    }
}

From source file:com.sr2610.steampunkd.config.ConfigHandler.java

License:Creative Commons License

@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
    if (eventArgs.getModID().equals(Reference.MOD_ID))
        syncConfig();//from   w ww.  ja va  2s.com
}

From source file:com.teambrmodding.neotech.managers.ConfigManager.java

License:Creative Commons License

@SubscribeEvent
public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
    if (event.getModID().equalsIgnoreCase(Reference.MOD_ID) && config.hasChanged())
        config.save();/* w w  w. java 2 s . co m*/
}

From source file:cubicchunks.CubicChunks.java

License:MIT License

@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
    if (eventArgs.getModID().equals(CubicChunks.MODID)) {
        config.syncConfig();/*w  ww  .ja  v a2s  .  c  om*/
        for (IConfigUpdateListener l : configChangeListeners) {
            l.onConfigUpdate(config);
        }
    }
}

From source file:de.canitzp.rarmor.config.Config.java

@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event) {
    if (RarmorAPI.MOD_ID.equalsIgnoreCase(event.getModID())) {
        this.config();
    }/*from  w  w  w.j a v a  2 s.  c  om*/
}

From source file:de.ellpeck.actuallyadditions.mod.config.ConfigurationHandler.java

@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event) {
    if (event.getModID().equalsIgnoreCase(ModUtil.MOD_ID)) {
        redefineConfigs();//from   www. j a v a  2 s  . com
    }
}