當前位置: 首頁>>代碼示例>>Java>>正文


Java ConfigChangedEvent.OnConfigChangedEvent方法代碼示例

本文整理匯總了Java中cpw.mods.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent方法的典型用法代碼示例。如果您正苦於以下問題:Java ConfigChangedEvent.OnConfigChangedEvent方法的具體用法?Java ConfigChangedEvent.OnConfigChangedEvent怎麽用?Java ConfigChangedEvent.OnConfigChangedEvent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在cpw.mods.fml.client.event.ConfigChangedEvent的用法示例。


在下文中一共展示了ConfigChangedEvent.OnConfigChangedEvent方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onConfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs)
{
    if (!CreeperHost.MOD_ID.equals(eventArgs.modID))
    {
        return;
    }

    CreeperHost.instance.saveConfig();
}
 
開發者ID:CreeperHost,項目名稱:CreeperHostGui,代碼行數:11,代碼來源:EventHandler.java

示例2: onConfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent e)
{
    if(e.modID.equals(References.MODID))
    {
        ConfigurationKorTech.syncConfig();
    }
}
 
開發者ID:koravel,項目名稱:ElementalElaboration,代碼行數:9,代碼來源:KorTech.java

示例3: onConfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@CoreEvent
public void onConfigChanged(final @Nonnull ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
	if (StringUtils.equals(eventArgs.modID, Reference.MODID)) {
		save();
		reload();
	}
}
 
開發者ID:Team-Fruit,項目名稱:McHeliPrivacyShield,代碼行數:8,代碼來源:Config.java

示例4: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
    if (event.modID.equalsIgnoreCase(Reference.MOD_ID))
    {
        loadConfiguration();
    }
}
 
開發者ID:XFactHD,項目名稱:RFUtilities,代碼行數:9,代碼來源:ConfigHandler.java

示例5: onConfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
			
	if (event.modID.equals(Reference.MOD_ID)) {
		syncConfig();
	}
}
 
開發者ID:TeamMonumental,項目名稱:FissionWarfare,代碼行數:8,代碼來源:FWConfig.java

示例6: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent (final ConfigChangedEvent.OnConfigChangedEvent event)
{
    if (event.modID.equalsIgnoreCase(MOD_ID))
    {
        loadConfiguration();
    }
}
 
開發者ID:UndeadZeratul,項目名稱:TWBB-Tweaks,代碼行數:9,代碼來源:ConfigurationHandler.java

示例7: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
    if (event.modID.equalsIgnoreCase(Main.MODID))
    {
        loadConfiguration();
    }
}
 
開發者ID:dmaster8,項目名稱:DMTweaks,代碼行數:9,代碼來源:Config.java

示例8: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
	if (event.modID.equalsIgnoreCase(Reference.MOD_ID))
	{
		loadConfig();
	}
}
 
開發者ID:Tamfoolery,項目名稱:Woodcraft,代碼行數:9,代碼來源:ConfigHandler.java

示例9: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event) {
	
	if(event.modID.equalsIgnoreCase(Reference.MOD_ID)) {
		loadConfiguration();
	}
}
 
開發者ID:WolfDevMC,項目名稱:Necromanteion-Mod,代碼行數:8,代碼來源:ConfigurationHandler.java

示例10: onConfigurationChagedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChagedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
    if (event.modID.equalsIgnoreCase(ModDetails.ModID))
    {
        loadConfiguration();
    }
}
 
開發者ID:Bunsan,項目名稱:TerraFirmaStuff,代碼行數:9,代碼來源:ConfigurationHandler.java

示例11: onConfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
    if(event.modID.equals(Reference.MODID)) {
        loadValues();
        createSets();
    }
}
 
開發者ID:ljfa-ag,項目名稱:Adventure-Backport,代碼行數:8,代碼來源:Config.java

示例12: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
    if(event.modID.equalsIgnoreCase(Reference.MOD_ID))
    {
        loadConfiguration();
    }
}
 
開發者ID:Pzev,項目名稱:LazerTech,代碼行數:9,代碼來源:ConfigurationHandler.java

示例13: onConfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
  if (event.modID.equals(modid)) {
    EnderCore.logger.info("Reloading all configs for modid: " + modid);
    reloadAllConfigs();
    saveConfigFile();
  }
}
 
開發者ID:SleepyTrousers,項目名稱:EnderCore,代碼行數:9,代碼來源:AbstractConfigHandler.java

示例14: onConfigurationChangedEvent

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
/**
 * Loads the config file when it is changed
 * @param event event fired on change
 */
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
	if (event.modID.equalsIgnoreCase(UpToDate.MOD_ID))
	{
		loadConfiguration();
	}
}
 
開發者ID:Strikingwolf,項目名稱:UpToDate,代碼行數:13,代碼來源:Config.java

示例15: onconfigChanged

import cpw.mods.fml.client.event.ConfigChangedEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onconfigChanged(ConfigChangedEvent.OnConfigChangedEvent event)
{
    if(event.modID.equals(RoadStuff.MODID))
    {
        RoadStuffConfig.syncConfig();
    }
}
 
開發者ID:KillerMapper,項目名稱:roadstuff,代碼行數:9,代碼來源:RoadStuff.java


注:本文中的cpw.mods.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。