当前位置: 首页>>代码示例>>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;未经允许,请勿转载。