diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-02 19:41:28 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-02 19:41:28 +0800 |
| commit | d414c887e0c42325cf2e7c778b32e3fb13ee2e69 (patch) | |
| tree | 7f8a3c76d1171664f7ad79d715f1a749f531f38e /src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java | |
| parent | 6352ba7abe3a01b694b01e03238b297eef447df4 (diff) | |
| download | RoughlyEnoughItems-d414c887e0c42325cf2e7c778b32e3fb13ee2e69.tar.gz RoughlyEnoughItems-d414c887e0c42325cf2e7c778b32e3fb13ee2e69.tar.bz2 RoughlyEnoughItems-d414c887e0c42325cf2e7c778b32e3fb13ee2e69.zip | |
2.9.2 Live Generated Recipe Displays
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java b/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java new file mode 100644 index 000000000..2e331b1df --- /dev/null +++ b/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java @@ -0,0 +1,22 @@ +/* + * Roughly Enough Items by Danielshe. + * Licensed under the MIT License. + */ + +package me.shedaniel.rei.api; + +import net.minecraft.item.ItemStack; +import net.minecraft.util.Identifier; + +import java.util.List; +import java.util.Optional; + +public interface LiveRecipeGenerator<T extends RecipeDisplay> { + + Identifier getCategoryIdentifier(); + + Optional<List<T>> getRecipeFor(ItemStack stack); + + Optional<List<T>> getUsageFor(ItemStack stack); + +} |
