跳到正文
烈焰甘蔗Wiki

Strawberry Juice(strawberryjuiceItem)

基本信息

属性 值
注册名 harvestcraft:strawberryjuiceItem
源码类 ItemPamPotionFood(com.pam.harvestcraft.ItemPamPotionFood,继承 ItemFood)
实例化 ItemRegistry.java:1299
注册 ItemRegistry.java:2555(GameRegistry.registerItem)
语言键 item.strawberryjuiceItem.name = “Strawberry Juice”
最大堆叠 64(Item 默认,未调用 setMaxStackSize)
耐久 无(未调用 setMaxDamage)→ 不可附魔
创造标签 tabHarvestCraft3(HarvestCraft Food)

食物属性

属性 值 依据
饥饿值(ItemFood 第 1 构造参数) 5 ItemRegistry.java:1299
饱和度系数(第 2 构造参数) mealsaturation 配置项 crops.mealsaturation,默认 1.2,玩家可改
第 3 构造参数 false 与全 mod 其余 ItemFood 一致
使用动作 喝(EnumAction.drink,ItemPamPotionFood.java:18-20 覆写 func_77661_b) ItemRegistry.java:1299 构造为 ItemPamPotionFood,该类 ItemPamPotionFood.java:18 覆写 func_77661_b 返回 EnumAction.drink

饱和度不是写死的数字:mealsaturation 在 ItemRegistry.initItems 中由配置文件读取(ItemRegistry.java:917),实例化时读的是字段当前值。

产出途径

产出途径 材料 源码位置
工作台合成(CraftingManager 配方表,2×2/3×3 网格均可用) toolJuicer + cropStrawberry PamFoodRecipes.java:234
压制机 (Presser) ItemRegistry.strawberryItem PresserRecipes.java:40

矿辞(OreDictionary)

注册于 PamFoodOreDictionaryRegistry.java:

  • foodStrawberryjuice
  • listAlljuice

相关条目

源码证据

  • 实例化:com/pam/harvestcraft/ItemRegistry.java:1299
    strawberryjuiceItem = new ItemPamPotionFood(5, mealsaturation, false).func_77655_b("strawberryjuiceItem").func_111206_d("harvestcraft:strawberryjuiceItem").func_77637_a(HarvestCraft.tabHarvestCraft3);
    
  • 注册:ItemRegistry.java:2555 `
    GameRegistry.registerItem((Item)strawberryjuiceItem, (String)"strawberryjuiceItem");
    
浏览全部模组