配置文件

基本信息

属性 值
路径 config/NotEnoughEnergistics.cfg
加载时机 preInit(NotEnoughEnergistics.java:55)
加载类 com.github.vfyjxf.nee.config.NEEConfig
选项总数 15(3 个分类)
热重载 支持(ConfigChangedEvent → NEEConfig.reload(),config/NEEConfig.java:304-310)
图形界面 guiFactory = com.github.vfyjxf.nee.config.NEEConfigGuiFactory(NotEnoughEnergistics.java:29)

用的是 Forge 原生 net.minecraftforge.common.config.Configuration,不是 GTNHLib 的注解式配置。首次运行会写出全部 15 项默认值;改动后发 ConfigChangedEvent 即触发 reload() 重新读盘。

分类 transfer(7 项)

样板转换行为。

键 类型 默认 说明
transformItemBlacklist String[] [] 黑名单,JSON 格式,见下方说明
transformItemPriorityList String[] [] 优先转换列表,JSON 格式
transformPriorityModList String[] [] 若 OreDict 中有该 mod 的物品则优先用它
noShift boolean true 为 true 时,合成终端/配方终端里用 NEI 转移不需要按 Shift
itemCombinationMode String ENABLED 物品合并模式,取值见下
itemCombinationWhitelist String[] [] 合并白名单(仅 WHITELIST 模式生效)
includeNonConsumableIngredients boolean false 为 true 时,NEI 中 stackSize = 0 的非消耗品材料也参与转换

黑名单 / 优先列表的元素格式(NEEConfig.java:50-52):

{modid:modid,name:name,meta:meta,recipeProcessor:recipeProcessorID,identifier:identifier}
例:{modid:minecraft,name:iron_ingot,recipeProcessor:EnderIO,identifier:EnderIOAlloySmelter}

可用 /nee add 在游戏内追加。

itemCombinationMode 取值

值 含义
ENABLED 全局开启合并
DISABLED 关闭
WHITELIST 只对 itemCombinationWhitelist 中的标识符生效

分类 helper(2 项)

键 类型 默认 说明
matchOnCraftableItems boolean true 为 true 时,合成帮助也会匹配不能自动合成的物品
drawHighlight boolean true 为 true 时,在 NEI 里高亮缺失物品与可自动合成物品

分类 other(6 项)

键 类型 默认 范围 说明
allowSynchronousSwitchIngredient boolean true — 所有同类材料同时切换
useNEIDragFromNEIAddons boolean false — 使用 NEI Addons 的拖拽实现
enableNEIDragDrop boolean true — 启用 NEI 拖拽放入
useStackSizeFromNEI boolean true — 使用 NEI 给出的堆叠数量
keepGhostitems boolean true — 点击后保留 ghost item
draggedStackDefaultSize int 1 1–64 useStackSizeFromNEI 为 false 时,拖入槽位的默认数量

draggedStackDefaultSize 是唯一带硬范围限制的项(NEEConfig.java:142),Forge 的 Configuration.getInt 会把越界值钳回范围内。

图形化配置界面

guiFactory 指向 config/NEEConfigGuiFactory,在游戏「模组列表 → 配置」里提供 GUI 入口,实现在 config/NEEConfigGui.java + config/ItemCombination.java。改完同样走 ConfigChangedEvent → reload()。

相关按键

matchOnCraftableItems 与 drawHighlight 作用于哪些界面,取决于 终端按键 的绑定。