Skip to content

Conversation

@davight
Copy link
Contributor

@davight davight commented Jan 17, 2026

// TODO: 1.21.5: TransmuteRecipe?
/*
SmithingTransformRecipe recipe = new SmithingTransformRecipe(Optional.of(templateItemRecipe), baseItemRecipe, Optional.of(upgradeItemRecipe), CraftItemStack.asNMSCopy(result));
SmithingTransformRecipe recipe = new SmithingTransformRecipe(Optional.ofNullable(templateItemRecipe), baseItemRecipe, Optional.of(upgradeItemRecipe), new TransmuteResult(CraftItemStack.asNMSCopy(result).getItem()));
Copy link
Member

Choose a reason for hiding this comment

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

You'd need to pass in more data to the TransmuteResult here, can put the NMS ItemStack in a variable and then get the item type (like it does rn), count of the stack, and the components patch via #getComponentsPatch (iirc).

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