Bag
基本信息
| 属性 |
值 |
| 注册名 |
WitchingGadgets:WG_Bag |
| 物品类 |
witchinggadgets.common.items.tools.ItemBag |
| 注册位置 |
WGContent.java:431-432(preInitItems) |
| 注册条件 |
WGConfig.moduleBag == true(默认 true,WGConfig.java:127) |
| 子变体数 |
4(normal / void / ender / hungry) |
功能
Bag(袋子)是本模组的可染色容器物品,用 meta 区分 4 种袋子:
| lang 变体 |
显示名 |
启用条件 |
normal |
Bag of Tricks |
基础款 |
void |
Voidlinked Bag |
WGConfig.bagVoid(默认 true,WGConfig.java:128-130) |
ender |
Enderlinked Bag |
WGConfig.bagEnder(默认 true,WGConfig.java:131-133) |
hungry |
Hungry Bag |
WGConfig.bagHungry(默认 true,WGConfig.java:134-135) |
三个联接款(Void / Ender / Hungry)的配置注释均注明「Requires Bags to be enabled」,即依赖 moduleBag 本身。
数值
| 数值名 |
值 |
| 袋子变体数 |
4(lang 中 item.WG_Bag.* 条目数:normal / void / ender / hungry) |
| 关联配置开关数 |
3(bagVoid / bagEnder / bagHungry) |
交互
| 触发 |
行为 |
| 右键 |
打开袋子 GUI(各变体容量与功能不同) |
| 染色 |
存在专属 BagColourizationRecipe(WGContent.java:507),并通过 RecipeSorter.register("WitchingGadgets:bagdye", BagColourizationRecipe.class, SHAPELESS, "after:forge:shapelessore") 注册排序(WGContent.java:518-522) |
合成配方
- 奥术配方:
WG_arcane_bags.java(研究 BAGOFTRICKS,页面含 BAGOFTRICKS_CLOTH 与 BAGOFTRICKS_BAG)
- 注液变体:
WG_infusion_bags.java(研究 VOIDBAG、ENDERBAG、HUNGERBAG)
- 染色配方:
BagColourizationRecipe(witchinggadgets.common.util.recipe)
相关条目