本文整理匯總了Java中cpw.mods.fml.client.event.ConfigChangedEvent類的典型用法代碼示例。如果您正苦於以下問題:Java ConfigChangedEvent類的具體用法?Java ConfigChangedEvent怎麽用?Java ConfigChangedEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConfigChangedEvent類屬於cpw.mods.fml.client.event包,在下文中一共展示了ConfigChangedEvent類的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();
}
示例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();
}
}
示例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();
}
}
示例4: onConfigChanged
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent event)
{
if (event.modID.equals(Constants.MOD_ID_PLANETS))
{
for (IPlanetsModule module : GalacticraftPlanets.commonModules.values())
{
module.syncConfig();
}
}
}
示例5: onConfigChanged
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent event)
{
if (event.modID.equals(Constants.MOD_ID_CORE))
{
ConfigManagerCore.syncConfig(false);
}
}
示例6: onConfigurationChangedEvent
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
if (event.modID.equalsIgnoreCase(Reference.MOD_ID))
{
loadConfiguration();
}
}
示例7: onConfigChanged
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
if (event.modID.equals(Reference.MOD_ID)) {
syncConfig();
}
}
示例8: onConfigurationChangedEvent
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent (final ConfigChangedEvent.OnConfigChangedEvent event)
{
if (event.modID.equalsIgnoreCase(MOD_ID))
{
loadConfiguration();
}
}
示例9: onConfigurationChangedEvent
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
if (event.modID.equalsIgnoreCase(VersionInfo.ModName))
{
if (configuration.hasChanged())
{
configuration.save();
}
syncConfigs();
}
}
示例10: onConfigurationChangedEvent
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
{
if (event.modID.equalsIgnoreCase(Main.MODID))
{
loadConfiguration();
}
}
示例11: onConfigurationChanged
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigurationChanged(ConfigChangedEvent.OnConfigChangedEvent e) {
if (e.modID.equalsIgnoreCase(REFERENCE.MODID)) {
// Resync configs
LogHelper.info("Configs: Configuration has changed, loading.");
Configs.loadConfiguration();
}
}
示例12: onConfigChanged
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
if(event.modID.equals(Reference.MODID)) {
loadValues();
createSets();
}
}
示例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();
}
}
示例14: onconfigChanged
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onconfigChanged(ConfigChangedEvent.OnConfigChangedEvent event)
{
if(event.modID.equals(RoadStuff.MODID))
{
RoadStuffConfig.syncConfig();
}
}
示例15: onConfigurationChangedEvent
import cpw.mods.fml.client.event.ConfigChangedEvent; //導入依賴的package包/類
@SubscribeEvent
public void onConfigurationChangedEvent(
ConfigChangedEvent.OnConfigChangedEvent event) {
if (event.modID.equalsIgnoreCase(Reference.MOD_ID)) {
loadConfiguration();
}
}