aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-02-26 16:58:22 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-02-26 16:58:22 +0800
commit398bda6e8051368d48c0737719ce277028dce396 (patch)
treeefbf612ecd5f231b6ce8fd126273a5f49f29c8ca /src/main/java/me/shedaniel/rei/api/RecipeHelper.java
parent9e55b44b710f38c63a4bfd17d0b07318d5c68535 (diff)
downloadRoughlyEnoughItems-398bda6e8051368d48c0737719ce277028dce396.tar.gz
RoughlyEnoughItems-398bda6e8051368d48c0737719ce277028dce396.tar.bz2
RoughlyEnoughItems-398bda6e8051368d48c0737719ce277028dce396.zip
Make dialog remember its location
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RecipeHelper.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
new file mode 100644
index 000000000..0e1cdcf6e
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
@@ -0,0 +1,44 @@
+package me.shedaniel.rei.api;
+
+import me.shedaniel.rei.RoughlyEnoughItemsCore;
+import net.minecraft.item.ItemStack;
+import net.minecraft.recipe.RecipeManager;
+import net.minecraft.util.Identifier;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+public interface RecipeHelper {
+
+ public static RecipeHelper getInstance() {
+ return RoughlyEnoughItemsCore.getRecipeHelper();
+ }
+
+ public int getRecipeCount();
+
+ public List<ItemStack> findCraftableByItems(List<ItemStack> inventoryItems);
+
+ public void registerCategory(IRecipeCategory category);
+
+ public void registerDisplay(Identifier categoryIdentifier, IRecipeDisplay display);
+
+ public Map<IRecipeCategory, List<IRecipeDisplay>> getRecipesFor(ItemStack stack);
+
+ public RecipeManager getRecipeManager();
+
+ public List<IRecipeCategory> getAllCategories();
+
+ public Map<IRecipeCategory, List<IRecipeDisplay>> getUsagesFor(ItemStack stack);
+
+ public Optional<SpeedCraftAreaSupplier> getSpeedCraftButtonArea(IRecipeCategory category);
+
+ public void registerSpeedCraftButtonArea(Identifier category, SpeedCraftAreaSupplier rectangle);
+
+ public List<SpeedCraftFunctional> getSpeedCraftFunctional(IRecipeCategory category);
+
+ public void registerSpeedCraftFunctional(Identifier category, SpeedCraftFunctional functional);
+
+ Map<IRecipeCategory, List<IRecipeDisplay>> getAllRecipes();
+
+}