Pam Seed Food(可食用作物 / 种子家族索引)
事实基准:
harvestcraft-1.3.14-GTNH.jar(MC 1.7.10 / Forge 10.13.4.1614)CFR 0.152 反编译源码。
本条目是家族汇总/索引页。每个成员都有独立的单物品条目。
两个类的实测规模
| 类 | 含义 | 源码中不同变量数 | new 调用点数 | 说明 |
|—|—|—|—|
| ItemPamSeedFood | 既能吃又能种 | 60 | 64 | 差值来自 4 个水生作物被重复构造(见下) |
| ItemSeeds | 只能种,不能吃 | 61 | 61 | 无重复 |
ItemPamSeedFood —— 60 个可食用作物
| 显示名 | 注册名 | 种植出的方块 | 土壤 | 饥饿值 | 饱和度 | 备注 | 条目 |
|---|---|---|---|---|---|---|---|
| Blackberry | blackberryItem |
pamblackberryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | blackberryItem |
| Blueberry | blueberryItem |
pamblueberryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | blueberryItem |
| Candleberry | candleberryItem |
pamcandleberryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | candleberryItem |
| Raspberry | raspberryItem |
pamraspberryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | raspberryItem |
| Strawberry | strawberryItem |
pamstrawberryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | strawberryItem |
| Grape | grapeItem |
pamgrapeCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | grapeItem |
| Cactus Fruit | cactusfruitItem |
pamcactusfruitCrop |
Blocks.field_150354_m |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | cactusfruitItem |
| Asparagus | asparagusItem |
pamasparagusCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | asparagusItem |
| Barley | barleyItem |
pambarleyCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | barleyItem |
| Oats | oatsItem |
pamoatsCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | oatsItem |
| Rye | ryeItem |
pamryeCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | ryeItem |
| Corn | cornItem |
pamcornCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | cornItem |
| Bamboo Shoot | bambooshootItem |
pambambooshootCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | bambooshootItem |
| Cantaloupe | cantaloupeItem |
pamcantaloupeCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | cantaloupeItem |
| Cucumber | cucumberItem |
pamcucumberCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | cucumberItem |
| Winter Squash | wintersquashItem |
pamwintersquashCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | wintersquashItem |
| Zucchini | zucchiniItem |
pamzucchiniCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | zucchiniItem |
| Beet | beetItem |
pambeetCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | beetItem |
| Onion | onionItem |
pamonionCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | onionItem |
| Parsnip | parsnipItem |
pamparsnipCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | parsnipItem |
| Peanut | peanutItem |
pampeanutCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | peanutItem |
| Radish | radishItem |
pamradishCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | radishItem |
| Rutabaga | rutabagaItem |
pamrutabagaCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | rutabagaItem |
| Sweet Potato | sweetpotatoItem |
pamsweetpotatoCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | sweetpotatoItem |
| Turnip | turnipItem |
pamturnipCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | turnipItem |
| Rhubarb | rhubarbItem |
pamrhubarbCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | rhubarbItem |
| Celery | celeryItem |
pamceleryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | celeryItem |
| Garlic | garlicItem |
pamgarlicCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | garlicItem |
| Ginger | gingerItem |
pamgingerCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | gingerItem |
| Spice Leaf | spiceleafItem |
pamspiceleafCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | spiceleafItem |
| Edible Root | ediblerootItem |
pamspiceleafCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | ediblerootItem |
| Tea Leaf | tealeafItem |
pamtealeafCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | tealeafItem |
| Coffee Beans | coffeebeanItem |
pamcoffeebeanCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | coffeebeanItem |
| Mustard Seeds | mustardseedsItem |
pammustardseedsCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | mustardseedsItem |
| Broccoli | broccoliItem |
pambroccoliCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | broccoliItem |
| Cauliflower | cauliflowerItem |
pamcauliflowerCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | cauliflowerItem |
| Leek | leekItem |
pamleekCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | leekItem |
| Lettuce | lettuceItem |
pamlettuceCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | lettuceItem |
| Scallion | scallionItem |
pamscallionCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | scallionItem |
| Artichoke | artichokeItem |
pamartichokeCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | artichokeItem |
| Brussel Sprout | brusselsproutItem |
pambrusselsproutCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | brusselsproutItem |
| Cabbage | cabbageItem |
pamcabbageCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | cabbageItem |
| Spinach | spinachItem |
pamspinachCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | spinachItem |
| White Mushroom | whitemushroomItem |
pamwhitemushroomCrop |
Blocks.field_150364_r |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | whitemushroomItem |
| Beans | beanItem |
pambeanCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | beanItem |
| Soybean | soybeanItem |
pamsoybeanCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | soybeanItem |
| Bellpepper | bellpepperItem |
pambellpepperCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | bellpepperItem |
| Chili Pepper | chilipepperItem |
pamchilipepperCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | chilipepperItem |
| Eggplant | eggplantItem |
pameggplantCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | eggplantItem |
| Okra | okraItem |
pamokraCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | okraItem |
| Peas | peasItem |
pampeasCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | peasItem |
| Tomato | tomatoItem |
pamtomatoCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | tomatoItem |
| Pineapple | pineappleItem |
pampineappleCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | pineappleItem |
| Kiwi | kiwiItem |
pamkiwiCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | kiwiItem |
| Sesame Seeds | sesameseedsItem |
pamsesameseedsCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | sesameseedsItem |
| Curry Leaf | curryleafItem |
pamcurryleafCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
— | curryleafItem |
| Cranberry | cranberryItem |
pamcranberryCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
水生 ⚠️重复构造 | cranberryItem |
| Rice | riceItem |
pamriceCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
水生 ⚠️重复构造 | riceItem |
| Seaweed | seaweedItem |
pamseaweedCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
水生 ⚠️重复构造 | seaweedItem |
| Water Chestnut | waterchestnutItem |
pamwaterchestnutCrop |
Blocks.field_150458_ak |
cropfoodRestore |
config.cropsaturationRestore(默认 0.6) |
水生 ⚠️重复构造 | waterchestnutItem |
ItemSeeds —— 61 个种子
ItemSeeds 不可食用(不是 ItemFood),只用于在土壤上种植。
| 显示名 | 注册名 | 种植出的方块 | 土壤 | 条目 |
|---|---|---|---|---|
| Cotton | cottonItem |
pamcottonCrop |
Blocks.field_150458_ak |
cottonItem |
| Blackberry Seed | blackberryseedItem |
pamblackberryCrop |
Blocks.field_150458_ak |
blackberryseedItem |
| Blueberry Seed | blueberryseedItem |
pamblueberryCrop |
Blocks.field_150458_ak |
blueberryseedItem |
| Candleberry Seed | candleberryseedItem |
pamcandleberryCrop |
Blocks.field_150458_ak |
candleberryseedItem |
| Raspberry Seed | raspberryseedItem |
pamraspberryCrop |
Blocks.field_150458_ak |
raspberryseedItem |
| Strawberry Seed | strawberryseedItem |
pamstrawberryCrop |
Blocks.field_150458_ak |
strawberryseedItem |
| Grape Seed | grapeseedItem |
pamgrapeCrop |
Blocks.field_150458_ak |
grapeseedItem |
| Cactus Fruit Seed | cactusfruitseedItem |
pamcactusfruitCrop |
Blocks.field_150458_ak |
cactusfruitseedItem |
| Asparagus Seed | asparagusseedItem |
pamasparagusCrop |
Blocks.field_150458_ak |
asparagusseedItem |
| Barley Seed | barleyseedItem |
pambarleyCrop |
Blocks.field_150458_ak |
barleyseedItem |
| Oats Seed | oatsseedItem |
pamoatsCrop |
Blocks.field_150458_ak |
oatsseedItem |
| Rye Seed | ryeseedItem |
pamryeCrop |
Blocks.field_150458_ak |
ryeseedItem |
| Corn Seed | cornseedItem |
pamcornCrop |
Blocks.field_150458_ak |
cornseedItem |
| Bamboo Shoot Seed | bambooshootseedItem |
pambambooshootCrop |
Blocks.field_150458_ak |
bambooshootseedItem |
| Cantaloupe Seed | cantaloupeseedItem |
pamcantaloupeCrop |
Blocks.field_150458_ak |
cantaloupeseedItem |
| Cucumber Seed | cucumberseedItem |
pamcucumberCrop |
Blocks.field_150458_ak |
cucumberseedItem |
| Winter Squash Seed | wintersquashseedItem |
pamwintersquashCrop |
Blocks.field_150458_ak |
wintersquashseedItem |
| Zucchini Seed | zucchiniseedItem |
pamzucchiniCrop |
Blocks.field_150458_ak |
zucchiniseedItem |
| Beet Seed | beetseedItem |
pambeetCrop |
Blocks.field_150458_ak |
beetseedItem |
| Onion Seed | onionseedItem |
pamonionCrop |
Blocks.field_150458_ak |
onionseedItem |
| Parsnip Seed | parsnipseedItem |
pamparsnipCrop |
Blocks.field_150458_ak |
parsnipseedItem |
| Peanut Seed | peanutseedItem |
pampeanutCrop |
Blocks.field_150458_ak |
peanutseedItem |
| Radish Seed | radishseedItem |
pamradishCrop |
Blocks.field_150458_ak |
radishseedItem |
| Rutabaga Seed | rutabagaseedItem |
pamrutabagaCrop |
Blocks.field_150458_ak |
rutabagaseedItem |
| Sweet Potato Seed | sweetpotatoseedItem |
pamsweetpotatoCrop |
Blocks.field_150458_ak |
sweetpotatoseedItem |
| Turnip Seed | turnipseedItem |
pamturnipCrop |
Blocks.field_150458_ak |
turnipseedItem |
| Rhubarb Seed | rhubarbseedItem |
pamrhubarbCrop |
Blocks.field_150458_ak |
rhubarbseedItem |
| Celery Seed | celeryseedItem |
pamceleryCrop |
Blocks.field_150458_ak |
celeryseedItem |
| Garlic Seed | garlicseedItem |
pamgarlicCrop |
Blocks.field_150458_ak |
garlicseedItem |
| Ginger Seed | gingerseedItem |
pamgingerCrop |
Blocks.field_150458_ak |
gingerseedItem |
| Spice Leaf Seed | spiceleafseedItem |
pamspiceleafCrop |
Blocks.field_150458_ak |
spiceleafseedItem |
| Tea Seed | teaseedItem |
pamtealeafCrop |
Blocks.field_150458_ak |
teaseedItem |
| Coffee Seed | coffeeseedItem |
pamcoffeebeanCrop |
Blocks.field_150458_ak |
coffeeseedItem |
| Mustard Seed | mustardseedItem |
pammustardseedsCrop |
Blocks.field_150458_ak |
mustardseedItem |
| Broccoli Seed | broccoliseedItem |
pambroccoliCrop |
Blocks.field_150458_ak |
broccoliseedItem |
| Cauliflower Seed | cauliflowerseedItem |
pamcauliflowerCrop |
Blocks.field_150458_ak |
cauliflowerseedItem |
| Leek Seed | leekseedItem |
pamleekCrop |
Blocks.field_150458_ak |
leekseedItem |
| Lettuce Seed | lettuceseedItem |
pamlettuceCrop |
Blocks.field_150458_ak |
lettuceseedItem |
| Scallion Seed | scallionseedItem |
pamscallionCrop |
Blocks.field_150458_ak |
scallionseedItem |
| Artichoke Seed | artichokeseedItem |
pamartichokeCrop |
Blocks.field_150458_ak |
artichokeseedItem |
| Brussel Sprout Seed | brusselsproutseedItem |
pambrusselsproutCrop |
Blocks.field_150458_ak |
brusselsproutseedItem |
| Cabbage Seed | cabbageseedItem |
pamcabbageCrop |
Blocks.field_150458_ak |
cabbageseedItem |
| Spinach Seed | spinachseedItem |
pamspinachCrop |
Blocks.field_150458_ak |
spinachseedItem |
| White Mushroom Spore | whitemushroomseedItem |
pamwhitemushroomCrop |
Blocks.field_150458_ak |
whitemushroomseedItem |
| Bean Seed | beanseedItem |
pambeanCrop |
Blocks.field_150458_ak |
beanseedItem |
| Soybean Seed | soybeanseedItem |
pamsoybeanCrop |
Blocks.field_150458_ak |
soybeanseedItem |
| Bellpepper Seed | bellpepperseedItem |
pambellpepperCrop |
Blocks.field_150458_ak |
bellpepperseedItem |
| Chili Pepper Seed | chilipepperseedItem |
pamchilipepperCrop |
Blocks.field_150458_ak |
chilipepperseedItem |
| Eggplant Seed | eggplantseedItem |
pameggplantCrop |
Blocks.field_150458_ak |
eggplantseedItem |
| Okra Seed | okraseedItem |
pamokraCrop |
Blocks.field_150458_ak |
okraseedItem |
| Peas Seed | peasseedItem |
pampeasCrop |
Blocks.field_150458_ak |
peasseedItem |
| Tomato Seed | tomatoseedItem |
pamtomatoCrop |
Blocks.field_150458_ak |
tomatoseedItem |
| Cotton Seed | cottonseedItem |
pamcottonCrop |
Blocks.field_150458_ak |
cottonseedItem |
| Pineapple Seed | pineappleseedItem |
pampineappleCrop |
Blocks.field_150458_ak |
pineappleseedItem |
| Curry Leaf Seed | curryleafseedItem |
pamcurryleafCrop |
Blocks.field_150458_ak |
curryleafseedItem |
| Sesame Seeds Seed | sesameseedsseedItem |
pamsesameseedsCrop |
Blocks.field_150458_ak |
sesameseedsseedItem |
| Kiwi Seed | kiwiseedItem |
pamkiwiCrop |
Blocks.field_150458_ak |
kiwiseedItem |
| Cranberry Seed | cranberryseedItem |
pamcranberryCrop |
Blocks.field_150458_ak |
cranberryseedItem |
| Rice Seed | riceseedItem |
pamriceCrop |
Blocks.field_150458_ak |
riceseedItem |
| Seaweed Seed | seaweedseedItem |
pamseaweedCrop |
Blocks.field_150458_ak |
seaweedseedItem |
| Water Chestnut Seed | waterchestnutseedItem |
pamwaterchestnutCrop |
Blocks.field_150458_ak |
waterchestnutseedItem |
作物 ↔ 种子的对应关系(集合运算)
PamFoodRecipes.java:38-40 的 for (i = 0; i < 60; ++i) 循环按数组下标对齐建立「作物 → 种子」无序配方。数组定义在 ItemRegistry.java:2595(PamCropItems,60 项)与 :2596(PamSeeds,60 项)。这是一对一的 60 对,不是「数 60 个调用点」得出的结论。
- 循环在
enablecropspecialplanting(默认true)开启时,跳过cranberryItem/riceItem/seaweedItem三项(PamFoodRecipes.java:39),因此实际产生 57 条「作物→种子」配方。 - 整个循环受配置
enablecroptoseedRecipe门控,默认true(ItemRegistry.javainitItems)。
源码缺陷
- 4 个水生作物被重复构造。
ItemRegistry.java:1095-1102,cranberryItem/riceItem/seaweedItem/waterchestnutItem各被new ItemPamSeedFood(...)赋值两次,只有土壤参数不同(先Blocks.field_150355_j,后Blocks.field_150458_ak)。字段被后一次覆盖,第 1 次的实例是死对象,从未注册。这使得「new ItemPamSeedFood调用点数 64」与「不同物品数 60」不一致。 ItemPamSeedFood构造器收boolean isWolfFood参数却在:25写死false。getPlantMetadata恒返回 0(ItemPamSeedFood.java:79-81)。
相关条目
订正记录
- 本条目完全重写。旧版声称
ItemPamSeedFood「全 mod 只有 2 个实例,注册名是minecraft:potato/minecraft:carrot」—— 不成立。1.7.10 的ItemRegistry中new ItemPamSeedFood(...)共 64 个调用点、60 个不同变量,全部用harvestcraft:命名空间注册,没有任何minecraft:命名空间的注册。 - 旧版表中的「White Mushroom 饥饿 4 / 饱和度 4」是编造的:白蘑菇作物用的是
ItemPamSeedFood,饥饿值来自配置cropfoodRestore(默认 1),饱和度来自cropsaturationRestore(默认 0.6),源码中无字面量 4/4。 - 旧版「
[Crop Bag](crop-bag)」指向不存在的条目(该物品在本 jar 中未注册),已删除。 - 本版新增
ItemSeeds(61 个种子)的完整索引 —— 旧版完全没有覆盖这一类。