曲曲净化器

[!INFO] 注册真源:WarpItems.initItems()(shukaro.warptheory.items.WarpItems) 研究真源:WarpResearch.init() 中的 2 个 WTResearchItem

2 个净化器物品

常量 类 堆叠 创造标签 状态
ITEM_WARPCLEANSERMINOR ItemCleanserMinor 64 原版材料页 ✅ 可合成
ITEM_WARPCLEANSER ItemCleanser 16 自定义 WarpTheory 标签 ✅ 可合成

两者是独立的 Item 实例(同包不同类),不是同一物品的 meta。

⚠️ 注册名直接用 getUnlocalizedName()

WarpItems.initItems() 不写死字符串,而是把物品自己的 unlocalizedName 当注册名:

GameRegistry.registerItem(itemCleanserMinor, itemCleanserMinor.getUnlocalizedName());

而 unlocalizedName 来自 Constants:

常量字段 值 语言键前缀
ITEM_WARPCLEANSERMINOR "warptheory.cleanserminor" item.warptheory.cleanserminor.name
ITEM_WARPCLEANSER "warptheory.cleanser" item.warptheory.cleanser.name

⚠️ 因此物品标识符是 WarpTheory:warptheory.cleanser —— modid 重复出现在名字里(WarpTheory:warptheory.*), 因为 setUnlocalizedName 的值本身已含域名前缀,而 Forge 又自动加了一次 item. 前缀与 modid 命名空间。这是全模组 7 个物品的共同特征。

合成:注魔(Infusion)配方

两者都走 Thaumcraft 注魔台,WarpRecipes 中键名 PureTearMinor 与 PureTear:

配方键 产物 等级 消耗 注入要素
PureTearMinor itemCleanserMinor 5 Items.nether_star ELDRITCH 16 + EXCHANGE 16
PureTear itemCleanser 5 Items.nether_star ELDRITCH 16 + EXCHANGE 16

两者的8 格注入物不同:

格位 PureTearMinor PureTear
1 / 5 itemResource[14] itemResource[14]
2 / 6 Items.ghast_tear itemCleanserMinor
3 / 7 Items.diamond Items.diamond
4 / 8 Items.quartz Items.quartz

即完全版的 8 格中有 4 格用次级净化器替换了哭泣之泪 —— 「用次级净化器造完全级净化器」的递归设计。 itemResource[14] 是 Thaumcraft 的不稳定/亚空间类资源(由 ItemApi.getItem("itemResource", 14) 取得)。

⚠️ 上表仅适用于 wussMode = false(默认);wussMode = true 走 另一套低成本配方,见 Warp 配方。

研究条目

研究键 显示名 要素 行列 状态
ITEM_WARPCLEANSERMINOR 净化器 ELDRITCH 3 + EXCHANGE 1 -1, -2 setHidden()
ITEM_WARPCLEANSER 净化器 见下 — setConcealed()

ITEM_WARPCLEANSERMINOR 的研究:

.setParents("ELDRITCHMAJOR", Constants.ITEM_LITMUS, "FAKEELDMAJOR")
.setHidden()
.setItemTriggers(ItemApi.getItem("itemSanitySoap", 0))

setHidden() 表示默认隐藏,且靠获得 Thaumcraft 的 理智肥皂(itemSanitySoap) 触发显示。 前置为 ELDRITCHMAJOR(通过伪研究 FAKEELDMAJOR 映射)、 ITEM_LITMUS(石蕊试纸)与 FAKEELDMAJOR。

见 Warp 研究。

功能定位

净化器是消耗曲曲值的工具,与产生曲曲的 曲曲机制 相对。 ConfigHandler.allowPermWarpRemoval(默认 true) 控制物品能否移除永久曲曲 —— 若服务器关掉此项, 净化器只能清除暂存曲曲。

⚠️ 与护符类的区分

ItemCleanser / ItemCleanserMinor 不是 Baubles 饰品 (无 IBauble 实现),而是普通 Item; 真正挂在饰品槽的是 护符类物品 中的 ItemAmulet 与 ItemWarpWardAmulet。

相关条目