aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-08 20:30:53 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-08 20:30:53 +0800
commit4710c557f449703362665a520bf68b85b2a7cdc1 (patch)
treeed9555c626be11c7bc0d230d2b905856269bd916 /src/main/java/me/shedaniel/rei/api/RecipeDisplay.java
parent28adfa726bcdb27eea4ffa39962c881d5c3d929b (diff)
downloadRoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.tar.gz
RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.tar.bz2
RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.zip
We are going to break lots of mods
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RecipeDisplay.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java b/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java
index d77e2c9ab..26739d4cf 100644
--- a/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java
+++ b/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java
@@ -16,11 +16,6 @@ import java.util.Optional;
public interface RecipeDisplay<T extends Recipe> {
/**
- * @return the optional recipe
- */
- Optional<? extends Recipe> getRecipe();
-
- /**
* @return a list of items
*/
List<List<ItemStack>> getInput();
@@ -46,4 +41,13 @@ public interface RecipeDisplay<T extends Recipe> {
*/
Identifier getRecipeCategory();
+ /**
+ * Gets the recipe location from datapack
+ *
+ * @return the recipe location
+ */
+ default Optional<Identifier> getRecipeLocation() {
+ return Optional.empty();
+ }
+
}