aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-11-03 14:44:52 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-11-03 14:44:59 +0800
commit9f5a9eae9a7863412cc5eb433bf15e5ee71da616 (patch)
tree0e6b0b94af061c5e9023b1ff19f339a6c30149be /src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
parent3e3e25855b9f6df507a7d4c8a07c64b9a502fae2 (diff)
downloadRoughlyEnoughItems-9f5a9eae9a7863412cc5eb433bf15e5ee71da616.tar.gz
RoughlyEnoughItems-9f5a9eae9a7863412cc5eb433bf15e5ee71da616.tar.bz2
RoughlyEnoughItems-9f5a9eae9a7863412cc5eb433bf15e5ee71da616.zip
3.2.1
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java b/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
index 2e331b1df..8200fcdc0 100644
--- a/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
+++ b/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
@@ -15,8 +15,22 @@ public interface LiveRecipeGenerator<T extends RecipeDisplay> {
Identifier getCategoryIdentifier();
- Optional<List<T>> getRecipeFor(ItemStack stack);
+ @Deprecated
+ default Optional<List<T>> getRecipeFor(ItemStack stack) {
+ return Optional.empty();
+ }
- Optional<List<T>> getUsageFor(ItemStack stack);
+ default Optional<List<T>> getRecipeFor(EntryStack entry) {
+ return Optional.empty();
+ }
+
+ @Deprecated
+ default Optional<List<T>> getUsageFor(ItemStack stack) {
+ return Optional.empty();
+ }
+
+ default Optional<List<T>> getUsageFor(EntryStack entry) {
+ return Optional.empty();
+ }
}