CraftTweaker

CraftTweaker

151M Downloads

No clear way to get the internal ingredient of an IngredientStack

coderbot16 opened this issue · 0 comments

commented

[Note: I deleted the issue template since it is for people reporting bugs with their ZenScript, but I’m requesting a change with the CT mod-facing API]

I’m in the process of implementing CraftTweaker support for the Teckle Alloy Furnace. They use their own tuple based ingredient representation, meaning that instead of using IIngredient directly I have to convert to their format first. This works well for most cases, but the case where an OreDict entry is wrapped by an IngredientStack presents some issues. At the moment, it’s necessary to use reflection, but this is undesirable for several reasons.

So, it would just be nice if IngredientStack#getInternal would return its ingredient field instead of null.