Skip to content

Fire PrepareItemCraftEvent for Crafter preview - #14320

Merged
Doc94 merged 4 commits into
PaperMC:mainfrom
TiggerTakkyTTT:feature/12012-recipe-events
Oct 24, 2026
Merged

Doc94 merged 4 commits into
PaperMC:mainfrom
TiggerTakkyTTT:feature/12012-recipe-events

Conversation

@TiggerTakkyTTT

@TiggerTakkyTTT TiggerTakkyTTT commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

This makes PrepareItemCraftEvent fire when the Crafter updates its crafting preview, including when there is no valid recipe.

Partially addresses #12012

@TiggerTakkyTTT
TiggerTakkyTTT requested a review from a team as a code owner September 29, 2026 10:34
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Sep 29, 2026

@Warriorrrr Warriorrrr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is missing a comment, see the formatting section of the contributing docs, including the section regarding imports.

Comment thread paper-server/patches/sources/net/minecraft/world/inventory/CrafterMenu.java.patch Outdated

@Warriorrrr Warriorrrr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, I did notice that refreshRecipeResult is called quite a lot when opening a crafter menu due to it being called by the slotChanged method below. This would end up with a bit of event spam (~16 times during a single open), but don't think that should be a problem?

@Strokkur424

Copy link
Copy Markdown
Member

This PR does not fully fix the linked issue, as this one only looks at the crafter stuff. Maybe the linked issue should not be closed on merge before the furnace smelt stuff requested gets implemented.

@TiggerTakkyTTT

Copy link
Copy Markdown
Contributor Author

his PR does not fully fix the linked issue, as this one only looks at the crafter stuff. Maybe the linked issue should not be closed on merge before the furnace smelt stuff requested gets implemented.

Would you prefer that I implement the furnace part in this PR too? or keep this PR focused on the Crafter and do the furnace part in another PR?

@Strokkur424

Copy link
Copy Markdown
Member

I think a separate PR would be better so the changes are easier to review.

@TiggerTakkyTTT

Copy link
Copy Markdown
Contributor Author

I think a separate PR would be better so the changes are easier to review.

Sounds good, I’ll do the furnace changes in a separate PR.

@papermc-projects papermc-projects Bot moved this from Changes required to Delayed approval in Paper PR Queue Oct 22, 2026
@Warriorrrr Warriorrrr added type: feature Request for a new Feature. scope: api labels Oct 22, 2026
@papermc-projects papermc-projects Bot moved this from Delayed approval to Full approval in Paper PR Queue Oct 22, 2026
@Doc94
Doc94 merged commit 02378ab into PaperMC:main Oct 24, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Full approval to Merged in Paper PR Queue Oct 24, 2026
@TiggerTakkyTTT
TiggerTakkyTTT deleted the feature/12012-recipe-events branch October 24, 2026 13:05
granny added a commit to PurpurMC/Purpur that referenced this pull request Oct 24, 2026
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@e8a1f8fd Configurable plugin message channel limit PaperMC/Paper#14160
PaperMC/Paper@67912d08 [ci/skip] Re-enable using JBR for local run tasks again PaperMC/Paper#14318
PaperMC/Paper@02378ab5 Fire PrepareItemCraftEvent for Crafter preview PaperMC/Paper#14320
PaperMC/Paper@05c2798e Fix cancelled running scheduled task state PaperMC/Paper#14109
PaperMC/Paper@e3ba7b1d Regen missing worldgen settings file from server.properties PaperMC/Paper#14233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: api type: feature Request for a new Feature.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants