Crafter PrepareItemCraftEvents always have null recipe
维护者通常 1 天内回复
评估
调研方向
Start from the Bukkit CraftingInventory#getRecipe path and trace how it calls CraftingContainer#getCurrentRecipe for a crafter. The issue identifies CrafterBlockEntity as the missing override; check nearby recipe handling and tests for this block entity. Done means PrepareItemCraftEvent#getRecipe returns the recipe in the crafter menu instead of null.
由索引模型根据 Issue 内容生成。
描述
Expected behavior
PrepareItemCraftEvent#getRecipe to return the recipe currently within the crafter.
Observed/Actual behavior
PrepareItemCraftEvent#getRecipe always returns null
Steps/models to reproduce
- Create a listener for the PrepareItemCraftEvent
- Setup recipes inside of a crafter menu
- Observe the result of getRecipe
Plugin and Datapack List
(recreated it with running the paper dev server & just adding a listener to log the recipe)
Paper version
Other
The root cause of this seems to be that the bukkit method CraftingInventory#getRecipe relies on the nms method CraftingContainer#getCurrentRecipe which defaults to returning null and CrafterBlockEntity does not override it.
- 主要语言
- Java
- 星标
- 12.8k
- 派生
- 3.6k
- 平均合并
- 4 天 13 小时
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PaperMC/Paper 的其他 Issue
-
Cancelled interact event should not send a swing packet.可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭status: needs triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
Add .getIgniter() to ExplosiveMinecart可能已有人在做 @WouterGritter 于 42 天前认领。 未关闭status: needs triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
BlockType#isOccluding is incorrectly handled可能已有人在做 @ryoji-ikeda 于 186 天前认领。 未关闭status: accepted
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
status: needs triage version: 26.3
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
status: needs triage version: 26.3
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复
相似的 Issue
-
area:core bug priority:p2
难度 2/5 1-3 小时 新手友好度 82/100
aomarai/minecraft-mcp#247 ·
维护者通常 1 天内回复
-
help wanted
难度 2/5 1-3 小时 新手友好度 68/100
antonyrag/ragleap-core#1062 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
Vakore/ZappierGames#232 ·
-
难度 2/5 1-3 小时 新手友好度 83/100
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
constellation-app/constellation#2588 ·