aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java b/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
new file mode 100644
index 000000000..2e331b1df
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
@@ -0,0 +1,22 @@
+/*
+ * Roughly Enough Items by Danielshe.
+ * Licensed under the MIT License.
+ */
+
+package me.shedaniel.rei.api;
+
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.Identifier;
+
+import java.util.List;
+import java.util.Optional;
+
+public interface LiveRecipeGenerator<T extends RecipeDisplay> {
+
+ Identifier getCategoryIdentifier();
+
+ Optional<List<T>> getRecipeFor(ItemStack stack);
+
+ Optional<List<T>> getUsageFor(ItemStack stack);
+
+}