激素药水酿造台
基本信息
| 属性 | 值 |
|---|---|
| 注册名 | RandomThings:imbuingStation |
| 类 | lumien.randomthings.Blocks.BlockImbuingStation |
| TileEntity | TileEntityImbuingStation(ModTileEntities.java:20) |
| 材质 | Material.rock(BlockImbuingStation.java:21) |
| GUI ID | GuiIds.IMBUING_STATION = 11(GuiIds.java:16) |
| 开关 | 无 —— 始终注册(ModBlocks.java:63,注释 // Always there) |
功能
激素药水酿造台是激素药水的唯一制作途径,也是本 mod 唯一的自定义配方系统所在。
它使用一套自己的配方列表 ImbuingRecipeHandler.imbuingRecipes(Handler/ImbuingStation/ImbuingRecipeHandler.java:9),每条配方固定 4 材料 + 1 结果:
public static void addRecipe(ItemStack ingredient1, ItemStack ingredient2, ItemStack ingredient3,
ItemStack toImbue, ItemStack result) {
ImbuingRecipe toAdd = new ImbuingRecipe(toImbue, result, ingredient1, ingredient2, ingredient3);
imbuingRecipes.add(toAdd);
}
(ImbuingRecipeHandler.java:20-23)—— 参数名 toImbue 说明被激素浸泡的对象是独立于 3 种材料的第 4 个输入槽。
getRecipeOutput 顺序遍历配方表,返回第一条 matchesInventory 命中的结果(:12-19),未命中返回 null。
GUI 槽位
ContainerImbuingStation.java:23-27 共 5 个机器槽:
| 槽 | 坐标 | 类型 |
|---|---|---|
| 0 | 80, 9 |
材料 |
| 1 | 35, 54 |
材料 |
| 2 | 80, 99 |
材料 |
| 3 | 80, 54 |
材料(待浸泡物) |
| 4 | 125, 54 |
SlotOutputOnly 输出 |
后接玩家 27 + 9 格(:37、:42)。
7 条内置配方
Recipes.addImbuingRecipes()(Library/Recipes.java:511-527)。前 6 条受 ConfigItems.imbue 开关控制:
| # | 材料 1 | 材料 2 | 材料 3 | 浸泡对象 | 结果(激素药水 meta) |
|---|---|---|---|---|---|
| 1 | 蜘蛛眼 | 茜红花(red_flower meta 2) |
红蘑菇 | 水瓶 | 0 毒性 |
| 2 | 钻石 | 绿宝石 | 金锭 | 水瓶 | 1 经验 |
| 3 | 燧石 | 烈焰棒 | 下界砖块 | 水瓶 | 2 火焰 |
| 4 | 凋灵骷髅 | 骨头 | 煤炭 | 水瓶 | 3 凋零 |
| 5 | 腐肉 | 石英块 | 恶魂之泪 | 水瓶 | 4 虚弱 |
| 6 | 灵气 | 青金石块 | 雏菊(red_flower meta 8) |
水瓶 | 5 灵魂 |
| 7 | 火药 | 荧石粉 | 红石 | 水瓶 | 原料 meta 7 充能水 |
第 7 条不受 ConfigItems.imbue 开关约束(在 if 块之外,Recipes.java:521-526),因此即使关闭激素系统,充能水仍可制作。
数值
| 数值名 | 值 |
|---|---|
| 机器槽位数 | 5(4 材料 + 1 输出) |
| 内置配方数 | 7(6 条受开关 + 1 条常驻) |
| 配方匹配方式 | 顺序遍历,首个命中即返回 |
| 配置开关 | 无(方块始终注册) |
交互
| 触发 | 行为 |
|---|---|
| 右键 | 打开 GUI ID 11(zh_CN.lang:183 标题「激素药水酿造台」) |
| 放入 4 材料 | 第 5 槽出现结果 |
| 输出槽 | SlotOutputOnly,只读 |
合成配方
vcv
tgt
lel
| 字符 | 物品 |
|---|---|
v |
藤蔓(Blocks.vine) |
c |
桶(Items.cauldron) |
t |
高草(Blocks.tallgrass meta 1) |
g |
硬化黏土(stained_hardened_clay meta 13,棕) |
l |
睡莲(Blocks.waterlily) |
e |
绿宝石块(blockEmerald) |
来源:Library/Recipes.java:83-100,位于 // Always there 分支,不受任何方块开关约束。