Skip to content

Port recipes to 26.1.x#2611

Open
a6tumn wants to merge 18 commits into
TeamTwilight:26.1.xfrom
a6tumn:port-recipes
Open

Port recipes to 26.1.x#2611
a6tumn wants to merge 18 commits into
TeamTwilight:26.1.xfrom
a6tumn:port-recipes

Conversation

@a6tumn

@a6tumn a6tumn commented May 29, 2026

Copy link
Copy Markdown

This PR addresses a TODO in my previous PR regarding TFRecipes. The main goal here is switching to the new codec serialization system for recipes rather than using nested Serializer classes. It also deals with the removal of SimpleCraftingRecipeSerializer.

Notes:

  • Marked as draft for now since I am almost sure there will need to be changes.

  • The three TravellersGearModifierRecipe... files were not touched as there was a change in datagen that needs to be reflected there, which I have not yet looked into.

  • Largest changes worth reviewing first are in UncraftingRecipe, NoTemplateSmithingRecipe, DryingRecipe, and TFRecipes.

PS: Sorry for the messy diff in NoTemplateSmithingRecipe, I moved some things around.

@a6tumn a6tumn mentioned this pull request May 29, 2026
@a6tumn a6tumn marked this pull request as ready for review June 9, 2026 03:35
@a6tumn

a6tumn commented Jun 9, 2026

Copy link
Copy Markdown
Author

Feels best to leave this here for the time being. Going to mark as ready for review so I can get some feedback.

@Override
public RecipeSerializer<?> getSerializer() {
return TFRecipes.UNCRAFTING_SERIALIZER.get();
public RecipeSerializer<ShapedRecipe> getSerializer() {

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.

Just to quickly check, is it possible to use ? extends ShapedRecipe to avoid the casting?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Unfortunately it errors. I think the type is just very strict here for some reason.

@a6tumn a6tumn changed the title Ported recipes to 26.1.x Port recipes to 26.1.x Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants