跳到正文
烈焰甘蔗Wiki

Queen Bee(蜂王)

事实基准:harvestcraft-1.3.14-GTNH.jar(MC 1.7.10 / Forge 10.13.4.1614)CFR 0.152 反编译源码。

基本信息

属性 值 来源
注册名 harvestcraft:queenbeeItem ItemRegistry.java:1813
显示名 Queen Bee en_US.lang:252
Java 类 ItemPamBee ItemRegistry.java:1011
字段 ItemRegistry.queenbeeItem ItemRegistry.java 字段声明
创造标签 tabHarvestCraft(HarvestCraft Misc) ItemRegistry.java:1011
条件注册 否,无条件注册 ItemRegistry.java:1813
属性 值 来源
最大堆叠 1(field_77777_bU = 1) ItemPamBee.java:17
最大耐久(伤害值) 18(func_77656_e(18)) ItemPamBee.java:18
有子类型 是(func_77645_m() = setHasSubtypes(true)) ItemPamBee.java:19
矿词典名 beeQueen PamOtherOreDictionaryRegistry.java:37
Tooltip Apiary: Honeycomb, Waxcomb, Grubs\nCrafting Grid: Royal Jelly at 0 Durability en_US.lang:6

子类型(meta)

meta 含义 依据
0–16 工作中的蜂王(放进养蜂场正常产蜂蜡/蜂巢/幼虫) ItemPamBee.java:25 创造标签只列出 meta 0 与 18;TileEntityPamApiary.canRun()(:174-178)要求 getItemDamage() != getMaxDamage()
17 只剩 1 点耐久 —— 养蜂场此时必定产出 1 个幼虫(繁殖用),而非蜂蜡/蜂巢 TileEntityPamApiary.getComb()(:184-185)先判 getItemDamage() == 17
18 已耗尽(0 耐久) —— 合成 royaljellyItem(蜂王浆)用的正是这个形态 ItemPamBee.java:26;配方 PamOtherRecipes.java:71 用 new ItemStack(queenbeeItem, 1, 18)

在养蜂场中的运行参数(TileEntityPamApiary)

参数 值 来源
单次运行耗时 3200 tick(2 分 40 秒) TileEntityPamApiary.getRunTime()(:208-215)
每次运行消耗耐久 1 点(damageItem(1)) TileEntityPamApiary.run()(:198-199)
产物概率(meta ≠ 17) 蜂蜡 waxcombItem 50% / 蜂巢 honeycombItem 45% / 幼虫 grubItem 5% getComb()(:187-193),rnd.nextInt(100)
产物落点 槽 0–17 中第一个空格(从 0 开始扫) run()(:201-206)
蜂王存放槽位 第 18 号槽(inventory[18]) canRun()(:174-178)

合成配方

来源 配方
PamOtherRecipes.java:71 产出 royaljellyItem(蜂王浆)×1;材料:queenbeeItem meta 18
PamOtherRecipes.java:72 产出 queenbeeItem ×1;材料:grubItem(幼虫)+ royaljellyItem(蜂王浆)

行为

触发 行为 来源
右键 无任何行为 —— ItemPamBee 未覆写任何 onItemRightClick 类方法 ItemPamBee.java 全文 28 行
损坏 / 耐久 耐久上限 18,但类中没有任何消耗耐久的代码;meta 18 是由配方显式指定的形态,不是「用坏」产生的 PamOtherRecipes.java:71

矿词典(OreDictionary)

本物品注册进以下矿词典名。注意方向:注册进矿词典只代表本物品可被当作这些名字的材料使用,不代表它拥有这些名字对应的其他物品。

矿词典名 注册位置
beeQueen PamOtherOreDictionaryRegistry.java:37

相关条目

浏览全部模组