diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java | 18 |
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(); + } } |
