diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-08-05 17:14:07 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-08-05 17:14:07 +0800 |
| commit | 8a2df51193fd3db145f3b1ace974e9e0a0bc09a5 (patch) | |
| tree | 894244ea7e84d9bd78748e4e295e528cfc9e7979 /RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java | |
| parent | 1ce5ca77bc2f98df6cc370c96547c2c39c1fd897 (diff) | |
| download | RoughlyEnoughItems-8a2df51193fd3db145f3b1ace974e9e0a0bc09a5.tar.gz RoughlyEnoughItems-8a2df51193fd3db145f3b1ace974e9e0a0bc09a5.tar.bz2 RoughlyEnoughItems-8a2df51193fd3db145f3b1ace974e9e0a0bc09a5.zip | |
REI 5.1.0:
- Improve auto crafting, now able to detect things on the grid
- Introduce getResultingEntries as a replacement for getOutputEntries, it can now handle lists of lists of stacks
- Caching for fluid hashing
- Full fractions support for simple recipe display
- Made searchFavorites defaulted false
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java')
| -rw-r--r-- | RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java index e215d5f7c..32177e121 100644 --- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java +++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java @@ -23,7 +23,9 @@ package me.shedaniel.rei.api; +import me.shedaniel.rei.utils.CollectionUtils; import net.minecraft.util.Identifier; +import org.jetbrains.annotations.ApiStatus; import java.util.Collections; import java.util.List; @@ -39,7 +41,18 @@ public interface RecipeDisplay { /** * @return a list of outputs */ - List<EntryStack> getOutputEntries(); + @Deprecated + @ApiStatus.ScheduledForRemoval + default List<EntryStack> getOutputEntries() { + return Collections.emptyList(); + } + + /** + * @return a list of outputs + */ + default List<List<EntryStack>> getResultingEntries() { + return CollectionUtils.map(getOutputEntries(), Collections::singletonList); + } /** * Gets the required items used in craftable filters |
