跳到正文
烈焰甘蔗Wiki

Mashed Potatoes(食物)

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

基本信息

属性 值 来源
注册名 harvestcraft:mashedpotatoesItem ItemRegistry.java:2456
显示名 Mashed Potatoes en_US.lang:478
Java 类 ItemFood ItemRegistry.java:1234
字段 ItemRegistry.mashedpotatoesItem ItemRegistry.java:1234
创造标签 tabHarvestCraft3 ItemRegistry.java:1234
条件注册 否,registerItem 无条件调用 ItemRegistry.java:2456
属性 值 来源
最大堆叠 64 —— 未覆写 setMaxStackSize,沿用 Item 默认 ItemFood 无覆写
耐久度 无 —— 无 setMaxDamage 调用,不是工具 ItemRegistry.java:1234
饥饿值恢复 9 ItemRegistry.java:1234(构造器第 1 参数)
饱和度修饰 mealsaturation(默认 1.2) ItemRegistry.java:1234(构造器第 2 参数);配置读取见 ItemRegistry.java:917(crops 分类)
饱食时也能吃 false ItemRegistry.java:1234(构造器第 3 参数)
食用动作 吃(eat)—— 未覆写 getItemUseAction ItemRegistry.java:1234

饱和度的最终值由原版 ItemFood 在内部按 food × saturationModifier 计算,该计算不在本模组源码内;本条目只记录本模组传入的修饰系数。

获取方式(源码中登记的配方)

合成台配方(CraftingManager)

登记类:PamFoodRecipes.getRecipes()(preInit 调用)

来源 配方类型 产出 配方内容
PamFoodRecipes.java:134 无形状(Shapeless) mashedpotatoesItem ×1 工具 toolMixingbowl(矿词典) + foodButteredpotato + foodSalt
PamFoodRecipes.java:135 无形状(Shapeless) mashedpotatoesItem ×1 工具 toolMixingbowl(矿词典) + foodButteredpotato + dustSalt
PamFoodRecipes.java:136 无形状(Shapeless) mashedpotatoesItem ×1 工具 toolMixingbowl(矿词典) + foodButteredpotato + itemSalt

作为材料被使用

下列配方把本物品列为材料(经矿词典名匹配)。已按 (来源, 产物, 命中的矿词典名) 去重。

来源 产物 命中的矿词典名 同一配方中的其它矿词典材料
PamFoodRecipes.java:355 ItemRegistry.garlicmashedpotatoesItem foodMashedpotatoes cropGarlic
PamFoodRecipes.java:655 ItemRegistry.bangersandmashItem foodMashedpotatoes toolSkillet、foodPorksausage

矿词典(OreDictionary)

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

矿词典名
foodMashedpotatoes

来源:PamFoodOreDictionaryRegistry.getRegistry()(preInit 调用)。

源码缺陷 / 备注

  • 无。

相关条目

浏览全部模组