From 9f5a9eae9a7863412cc5eb433bf15e5ee71da616 Mon Sep 17 00:00:00 2001 From: Danielshe Date: Sun, 3 Nov 2019 14:44:52 +0800 Subject: 3.2.1 --- .../java/me/shedaniel/rei/api/LiveRecipeGenerator.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java') 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 { Identifier getCategoryIdentifier(); - Optional> getRecipeFor(ItemStack stack); + @Deprecated + default Optional> getRecipeFor(ItemStack stack) { + return Optional.empty(); + } - Optional> getUsageFor(ItemStack stack); + default Optional> getRecipeFor(EntryStack entry) { + return Optional.empty(); + } + + @Deprecated + default Optional> getUsageFor(ItemStack stack) { + return Optional.empty(); + } + + default Optional> getUsageFor(EntryStack entry) { + return Optional.empty(); + } } -- cgit