From 8d77ad86b203de62aa08a5ee62f91e27fd0fbd00 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sun, 30 Aug 2020 21:29:58 +0800 Subject: Fix brewing potions not appearing and allow scrolling in the tabs for villager like recipe viewing screen Signed-off-by: shedaniel --- .../src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java') diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java index 79bff2d4c..74a869474 100644 --- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -81,7 +81,17 @@ public interface RecipeHelper { * @param inventoryItems the materials * @return the list of craftable entries */ - List findCraftableEntriesByItems(List inventoryItems); + List findCraftableEntriesByItems(Iterable inventoryItems); + + /** + * Gets all craftable items from materials. + * + * @param inventoryItems the materials + * @return the list of craftable entries + */ + default List findCraftableEntriesByItems(List inventoryItems) { + return findCraftableEntriesByItems((Iterable) inventoryItems); + } /** * Registers a category -- cgit