diff options
| author | 2024-01-08 01:42:51 +0100 | |
|---|---|---|
| committer | 2024-01-08 01:42:51 +0100 | |
| commit | 52f8874f81116bd6767c6f9247347c30a3820e51 (patch) | |
| tree | 7c5398dc0e02bec54af7def5e1e11a7b733c034e /src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java | |
| parent | Build script improvements (diff) | |
| download | mc-eris-alchemy-52f8874f81116bd6767c6f9247347c30a3820e51.tar.gz mc-eris-alchemy-52f8874f81116bd6767c6f9247347c30a3820e51.tar.xz mc-eris-alchemy-52f8874f81116bd6767c6f9247347c30a3820e51.zip | |
Created the EMC system
Diffstat (limited to 'src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java')
| -rw-r--r-- | src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java b/src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java new file mode 100644 index 0000000..53ceaab --- /dev/null +++ b/src/main/java/lv/enes/mc/eris_alchemy/utils/RecipeUtils.java | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | package lv.enes.mc.eris_alchemy.utils; | ||
| 2 | |||
| 3 | import net.minecraft.core.RegistryAccess; | ||
| 4 | import net.minecraft.world.item.ItemStack; | ||
| 5 | import net.minecraft.world.item.crafting.Ingredient; | ||
| 6 | import net.minecraft.world.item.crafting.Recipe; | ||
| 7 | |||
| 8 | import java.util.List; | ||
| 9 | |||
| 10 | public class RecipeUtils { | ||
| 11 | public interface RecipeSuper { | ||
| 12 | List<Ingredient> lv_enes_mc$getIngredients(); | ||
| 13 | ItemStack lv_enes_mc$getOutput(RegistryAccess registryAccess); | ||
| 14 | } | ||
| 15 | |||
| 16 | public static List<Ingredient> getIngredients(Recipe<?> recipe) { | ||
| 17 | return ((RecipeSuper)recipe).lv_enes_mc$getIngredients(); | ||
| 18 | } | ||
| 19 | |||
| 20 | public static ItemStack getOutput(Recipe<?> recipe, RegistryAccess registryAccess) { | ||
| 21 | return ((RecipeSuper)recipe).lv_enes_mc$getOutput(registryAccess); | ||
| 22 | } | ||
| 23 | } | ||