package lv.enes.mc.eris_alchemy.utils; import net.minecraft.core.RegistryAccess; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.item.crafting.Recipe; import java.util.List; public final class RecipeUtils { public interface RecipeSuper { List lv_enes_mc$getIngredients(); ItemStack lv_enes_mc$getOutput(RegistryAccess registryAccess); } public static List getIngredients(Recipe recipe) { return ((RecipeSuper)recipe).lv_enes_mc$getIngredients(); } public static ItemStack getOutput(Recipe recipe, RegistryAccess registryAccess) { return ((RecipeSuper)recipe).lv_enes_mc$getOutput(registryAccess); } private RecipeUtils() {} }