aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-10 23:37:34 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-10 23:37:34 +0800
commit537dbb95f6429c03f1f0a57cb96acb242d4572ad (patch)
tree38d045d36135a79ca32011dfae7d011333ad7804 /src/main/java/me/shedaniel/rei/api
parentc29f736c5d29c7c0ae2ba189c4bc072aca12ebbd (diff)
downloadRoughlyEnoughItems-537dbb95f6429c03f1f0a57cb96acb242d4572ad.tar.gz
RoughlyEnoughItems-537dbb95f6429c03f1f0a57cb96acb242d4572ad.tar.bz2
RoughlyEnoughItems-537dbb95f6429c03f1f0a57cb96acb242d4572ad.zip
Basic Searching Works
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api')
-rw-r--r--src/main/java/me/shedaniel/rei/api/IRecipeCategory.java18
-rw-r--r--src/main/java/me/shedaniel/rei/api/IRecipeDisplay.java24
-rw-r--r--src/main/java/me/shedaniel/rei/api/IRecipePlugin.java11
3 files changed, 53 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/IRecipeCategory.java b/src/main/java/me/shedaniel/rei/api/IRecipeCategory.java
new file mode 100644
index 000000000..e4d357dee
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/api/IRecipeCategory.java
@@ -0,0 +1,18 @@
+package me.shedaniel.rei.api;
+
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.Identifier;
+
+public interface IRecipeCategory<T extends IRecipeDisplay> {
+
+ public Identifier getIdentifier();
+
+ public ItemStack getCategoryIcon();
+
+ public String getCategoryName();
+
+ default public boolean usesFullPage() {
+ return false;
+ }
+
+}
diff --git a/src/main/java/me/shedaniel/rei/api/IRecipeDisplay.java b/src/main/java/me/shedaniel/rei/api/IRecipeDisplay.java
new file mode 100644
index 000000000..1a19b21c5
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/api/IRecipeDisplay.java
@@ -0,0 +1,24 @@
+package me.shedaniel.rei.api;
+
+import com.google.common.collect.Lists;
+import net.minecraft.item.ItemStack;
+import net.minecraft.recipe.Recipe;
+import net.minecraft.util.Identifier;
+
+import java.util.List;
+
+public interface IRecipeDisplay<T extends Recipe> {
+
+ public abstract T getRecipe();
+
+ public List<List<ItemStack>> getInput();
+
+ public List<ItemStack> getOutput();
+
+ default public List<List<ItemStack>> getRequiredItems() {
+ return Lists.newArrayList();
+ }
+
+ public Identifier getRecipeCategory();
+
+}
diff --git a/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java b/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java
new file mode 100644
index 000000000..870691e6d
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java
@@ -0,0 +1,11 @@
+package me.shedaniel.rei.api;
+
+import me.shedaniel.rei.listeners.IListener;
+
+public interface IRecipePlugin extends IListener {
+
+ public void registerPluginCategories();
+
+ public void registerRecipes();
+
+}