本文整理汇总了Java中openmods.config.properties.ConfigurationChange类的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationChange类的具体用法?Java ConfigurationChange怎么用?Java ConfigurationChange使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigurationChange类属于openmods.config.properties包,在下文中一共展示了ConfigurationChange类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onConfigUpdate
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public static void onConfigUpdate(ConfigurationChange evt) {
if (evt.check("feature", "fakePlayerBlockBreakTools")) {
probeTools = null;
effectiveToolCache.invalidateAll();
}
}
示例2: onConfigChange
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onConfigChange(ConfigurationChange evt) {
if (evt.check("integration", "disableClasses")) {
fullBlacklist = Sets.newHashSet(imcBlacklist);
for (String cls : Config.teBlacklist)
fullBlacklist.add(cls.toLowerCase(Locale.ENGLISH));
}
}
示例3: onReconfig
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onReconfig(ConfigurationChange.Post evt) {
if (evt.category.equals("glasses")) notPumpkinOverlay.invalidate();
}
示例4: onConfigChange
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onConfigChange(ConfigurationChange.Post evt) {
if (evt.check("features", "lastStandFormula"))
updateReductionFormula();
}
示例5: onReconfig
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onReconfig(ConfigurationChange.Post evt) {
if (evt.check("tomfoolery", "flimFlamBlacklist")) flimFlamList = null;
}
示例6: onReconfig
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onReconfig(ConfigurationChange.Post evt) {
if (evt.check("canvas", "replaceBlacklist")) idBlacklist = createBlacklist();
}
示例7: onReconfig
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onReconfig(ConfigurationChange.Post evt) {
if (evt.check("dropblock", "specialBlockRules")) rules = null;
if (evt.check("dropblock", "overrides")) overrides = null;
}
示例8: onConfigChange
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onConfigChange(ConfigurationChange.Post evt) {
if (evt.check("trophy", "trophyDropChanceFormula"))
updateDropChanceFormula();
}
示例9: onReconfigure
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onReconfigure(ConfigurationChange.Post evt) {
if (evt.check("additional", "disableMobNames")) entityBlacklist = null;
}
示例10: onReconfig
import openmods.config.properties.ConfigurationChange; //导入依赖的package包/类
@SubscribeEvent
public void onReconfig(ConfigurationChange.Post evt) {
if (evt.check("cartographer", "blockBlacklist")) blockBlacklist = null;
}