summaryrefslogtreecommitdiff
path: root/src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java
blob: 53ceaabc190fcd1837bd9716a6f434fb86189cdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 class RecipeUtils {
	public interface RecipeSuper {
		List<Ingredient> lv_enes_mc$getIngredients();
		ItemStack lv_enes_mc$getOutput(RegistryAccess registryAccess);
	}

	public static List<Ingredient> 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);
	}
}