diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-03-05 22:32:29 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-03-05 22:32:29 +0800 |
| commit | c9ac8fccef10d968faf9ec60d116694ef511cd14 (patch) | |
| tree | 68c7029a5dc73f0290772bd0220982f8f975d679 /src/main/java/me/shedaniel/rei/api/RecipeDisplay.java | |
| parent | 0924138bc88c1cfa8a3cee5089dc8792555e70fa (diff) | |
| download | RoughlyEnoughItems-c9ac8fccef10d968faf9ec60d116694ef511cd14.tar.gz RoughlyEnoughItems-c9ac8fccef10d968faf9ec60d116694ef511cd14.tar.bz2 RoughlyEnoughItems-c9ac8fccef10d968faf9ec60d116694ef511cd14.zip | |
v2.3.2
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeDisplay.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/RecipeDisplay.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java b/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java new file mode 100644 index 000000000..109562aa2 --- /dev/null +++ b/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java @@ -0,0 +1,25 @@ +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; +import java.util.Optional; + +public interface RecipeDisplay<T extends Recipe> { + + Optional<T> getRecipe(); + + List<List<ItemStack>> getInput(); + + List<ItemStack> getOutput(); + + default List<List<ItemStack>> getRequiredItems() { + return Lists.newArrayList(); + } + + Identifier getRecipeCategory(); + +} |
