跳到正文
烈焰甘蔗Wiki

Spice Leaf(可食用作物)

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

基本信息

属性 值 来源
注册名 harvestcraft:spiceleafItem ItemRegistry.java:1925
显示名 Spice Leaf en_US.lang:322
Java 类 ItemPamSeedFood ItemRegistry.java:1067
字段 ItemRegistry.spiceleafItem ItemRegistry.java 字段声明
创造标签 tabHarvestCraft2(HarvestCraft Crops) ItemRegistry.java:1067
条件注册 否,无条件注册 ItemRegistry.java:1925
属性 值 来源
最大堆叠 64(未覆写,Item 默认) ItemPamSeedFood 未调用 func_77625_d
耐久度 无 无 setMaxDamage 调用
可食用 是 —— 继承 ItemFood ItemPamSeedFood.java:19
饥饿值恢复 cropfoodRestore(配置项 cropfoodRestore,默认 1) ItemRegistry.java:912(配置默认值)
饱和度 config.cropsaturationRestore(默认 0.6) ItemRegistry.java:913
狼食物(isWolfFood) 恒为 false —— 构造器把它写死(ItemPamSeedFood.java:25) ItemPamSeedFood.java:25
可种植 是 —— 实现 IPlantable ItemPamSeedFood.java:20
种植出的方块 BlockRegistry.pamspiceleafCrop | pamspiceleafCrop ItemRegistry.java:1067
要求土壤方块 field_150458_ak ItemRegistry.java:1067

种植行为(ItemPamSeedFood.java:30-52)

  • EnumPlantType = Crop(ItemPamSeedFood.java:72 的默认值)
  • 总开关:配置 enablecropitemsasseeds,默认 true(ItemRegistry.java:923);关闭后右键完全不响应。
  • 必须点击方块的顶面(par7 != 1 直接 return false)。
  • 陆生分支:要求点击处是本物品的 soilId、且 y+1 可放置,作物种在 y+1(ItemPamSeedFood.java:44-48)。

关联的种子物品

  • 种子:spiceleafseedItem
  • 反向配方:spiceleafseedItem 无序合成 1 个本物品(PamFoodRecipes.java:38-40 的 PamCropItems[i] → PamSeeds[i] 循环,受配置 enablecroptoseedRecipe 门控,默认 true)

作为材料被使用

下列合成台配方把本物品列为材料。分两类:经矿词典名匹配的,与把本物品以 Item 实例直接引用的。两者都是集合关系,已按 (来源, 产物) 去重。

经矿词典名匹配

来源 产物 命中的矿词典名 同一配方中的其它矿词典材料
PamFoodRecipes.java:188 spagettiItem cropSpiceleaf cropTomato、foodPasta、深锅(toolSaucepan)
PamFoodRecipes.java:199 springsaladItem cropSpiceleaf cropLettuce、砧板(toolCuttingboard)
PamFoodRecipes.java:258 curryItem listAllspice cropChilipepper、cropRice、foodCoconutmilk、foodSalt、深锅(toolSaucepan)
PamFoodRecipes.java:259 curryItem listAllspice cropChilipepper、cropRice、dustSalt、foodCoconutmilk、深锅(toolSaucepan)
PamFoodRecipes.java:260 curryItem listAllspice cropChilipepper、cropRice、foodCoconutmilk、itemSalt、深锅(toolSaucepan)
PamFoodRecipes.java:278 supremepizzaItem cropSpiceleaf cropBellpepper、cropOnion、foodPizza、砧板(toolCuttingboard)
PamFoodRecipes.java:332 roastedrootveggiemedleyItem cropSpiceleaf cropCarrot、cropOnion、cropTurnip、烤盘(toolBakeware)
PamFoodRecipes.java:333 roastedrootveggiemedleyItem cropSpiceleaf cropCarrot、cropOnion、烤盘(toolBakeware)
PamFoodRecipes.java:334 roastedrootveggiemedleyItem cropSpiceleaf cropCarrot、cropOnion、cropPotato、烤盘(toolBakeware)
PamFoodRecipes.java:335 roastedrootveggiemedleyItem cropSpiceleaf cropCarrot、cropOnion、cropSweetpotato、烤盘(toolBakeware)
PamFoodRecipes.java:336 roastedrootveggiemedleyItem cropSpiceleaf cropCarrot、cropOnion、cropRadish、烤盘(toolBakeware)
PamFoodRecipes.java:337 roastedrootveggiemedleyItem cropSpiceleaf cropCarrot、cropOnion、cropParsnip、烤盘(toolBakeware)
PamFoodRecipes.java:358 summersquashwithradishItem cropSpiceleaf cropRadish、cropZucchini、foodOliveoil、搅拌盆(toolMixingbowl)
PamFoodRecipes.java:380 guacamoleItem cropSpiceleaf cropAvocado、cropChilipepper、cropOnion、cropTomato、砧板(toolCuttingboard)
PamFoodRecipes.java:381 creamofavocadosoupItem cropSpiceleaf cropAvocado、cropLime、foodStock、listAllheavycream、烹饪锅(toolPot)
PamFoodRecipes.java:396 chickencurryItem listAllspice cropChilipepper、cropCoconut、cropGarlic、cropRice、foodGroundcinnamon、foodPlainyogurt、listAllchicken、烹饪锅(toolPot)
PamFoodRecipes.java:437 friedchickenItem cropSpiceleaf foodBlackpepper、foodFlour、foodOliveoil、listAllchicken、烹饪锅(toolPot)
PamFoodRecipes.java:476 peppermintItem cropSpiceleaf listAllsugar、深锅(toolSaucepan)
PamFoodRecipes.java:495 saladdressingItem cropSpiceleaf foodMayo、榨汁机(toolJuicer)
PamFoodRecipes.java:536 colasodaItem cropSpiceleaf foodBubblywater、listAllsugar、烹饪锅(toolPot)
PamFoodRecipes.java:544 mintchocolatechipicemcreamItem cropSpiceleaf foodChocolatebar、listAllicecream、搅拌盆(toolMixingbowl)
PamFoodRecipes.java:547 ediblerootItem cropSpiceleaf 砧板(toolCuttingboard)
PamFoodRecipes.java:564 herbbutterparsnipsItem cropSpiceleaf cropParsnip、foodButter、深锅(toolSaucepan)
PamFoodRecipes.java:600 maplesausageItem cropSpiceleaf cropMaplesyrup、listAllbeef
PamFoodRecipes.java:614 chickengumboItem listAllspice cropBellpepper、cropCelery、cropOkra、cropOnion、foodStock、listAllchicken、烹饪锅(toolPot)
PamFoodRecipes.java:619 vegemiteItem cropSpiceleaf cropBarley、listAllsugar、listAllwater、烹饪锅(toolPot)
PamFoodRecipes.java:636 gherkinItem cropSpiceleaf cropCucumber、foodSalt、foodVinegar、烹饪锅(toolPot)
PamFoodRecipes.java:638 gherkinItem cropSpiceleaf cropCucumber、foodVinegar、烹饪锅(toolPot)
PamFoodRecipes.java:640 gherkinItem cropSpiceleaf cropCucumber、dustSalt、foodVinegar、烹饪锅(toolPot)
PamFoodRecipes.java:641 gherkinItem cropSpiceleaf cropCucumber、foodVinegar、itemSalt、烹饪锅(toolPot)
PamFoodRecipes.java:653 holidaycakeItem cropSpiceleaf cropCherry、listAllegg、listAllheavycream、listAllsugar、烤盘(toolBakeware)
PamFoodRecipes.java:658 chorizoItem listAllspice cropGarlic、foodSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:659 chorizoItem listAllspice cropGarlic、dustSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:660 chorizoItem listAllspice cropGarlic、itemSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:667 pepperoniItem listAllspice cropBellpepper、foodSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:668 pepperoniItem listAllspice cropBellpepper、dustSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:669 pepperoniItem listAllspice cropBellpepper、itemSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:673 porksausageItem listAllspice foodSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:674 porksausageItem listAllspice dustSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:675 porksausageItem listAllspice itemSalt、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:680 randomtacoItem listAllspice cropAvocado、cropOnion、foodCheese、foodLimejuice、foodTortilla、listAllbeefcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:688 sundayroastItem listAllgreenveggie foodRoastchicken、foodRoastpotatoes、烤盘(toolBakeware)
PamFoodRecipes.java:689 bbqpulledporkItem cropSpiceleaf cropTomato、foodToast、listAllporkcooked、砧板(toolCuttingboard)
PamFoodRecipes.java:690 lambwithmintsauceItem cropSpiceleaf foodVinegar、listAllmutton、listAllsugar、烤盘(toolBakeware)
PamFoodRecipes.java:715 kimchiItem listAllspice cropCabbage、cropGarlic、cropGinger、cropRadish、cropScallion、cropSesame、foodSalt、烹饪锅(toolPot)
PamFoodRecipes.java:719 okrachipsItem cropSpiceleaf cropOkra、foodSalt、烤盘(toolBakeware)
PamFoodRecipes.java:720 okracreoleItem listAllspice cropBellpepper、cropGarlic、cropOkra、cropOnion、cropTomato、煎锅(toolSkillet)
PamFoodRecipes.java:731 sweetpickleItem cropSpiceleaf cropCucumber、foodSalt、foodVinegar、listAllsugar、烹饪锅(toolPot)
PamFoodRecipes.java:732 veggiestripsItem listAllspice foodSalt、listAllveggie、烤盘(toolBakeware)
PamFoodRecipes.java:743 garammasalaItem cropSpiceleaf foodBlackpepper、foodGroundcinnamon、foodGroundnutmeg、臼与杵(toolMortarandpestle)
PamFoodRecipes.java:749 mangochutneyItem cropSpiceleaf cropMango、cropMustard、foodOliveoil、烹饪锅(toolPot)
PamFoodRecipes.java:761 potatoandleeksoupItem cropSpiceleaf cropLeek、cropPotato、foodBlackpepper、foodStock、listAllheavycream、烹饪锅(toolPot)

矿词典(OreDictionary)

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

矿词典名 注册位置
listAllgreenveggie PamFoodOreDictionaryRegistry.java:299
listAllspice PamFoodOreDictionaryRegistry.java:300
cropSpiceleaf PamFoodOreDictionaryRegistry.java:301

获取方式

**源码中没有任何配方、机器加工或熔炼把本物品列为产物。**这不是数据缺失,而是本 jar 的客观事实 —— 它的来源是下面这条路径:

来源 证据
收割 pamspiceleafCrop 作物方块 | pamspiceleafCrop BlockPamCrop.func_149650_a

补充:spiceleafItem 可在 Market 购买(MarketItems 按 ItemRegistry.PamSeeds[] / 各分类数组批量登记)。

源码缺陷

  1. getPlantMetadata 恒返回 0(ItemPamSeedFood.java:79-81),所有 ItemPamSeedFood 作物只使用 meta 0。
  2. 构造函数签名收了 int amount, float saturation, boolean isWolfFood, … 四个语义参数,但实际只用了前两个,isWolfFood 在 :25 被替换成字面量 false —— 调用方无法通过构造参数改变它。

相关条目

浏览全部模组