diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-05 20:14:36 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-05 20:14:36 +0800 |
| commit | fd99a42678f27d74483cfa2ae069de8bea38f893 (patch) | |
| tree | 7f76246c3d861c41ac3d93c5781e46e477d415eb /src/main/java/me/shedaniel/rei/api/RecipeHelper.java | |
| parent | a1480e28813b4fc9f6d4f8ce252dd5a355c00855 (diff) | |
| download | RoughlyEnoughItems-fd99a42678f27d74483cfa2ae069de8bea38f893.tar.gz RoughlyEnoughItems-fd99a42678f27d74483cfa2ae069de8bea38f893.tar.bz2 RoughlyEnoughItems-fd99a42678f27d74483cfa2ae069de8bea38f893.zip | |
recipe id cache
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java index 5a5c1b4a2..5cc71f013 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -14,6 +14,7 @@ import net.minecraft.util.Identifier; import java.util.List; import java.util.Map; import java.util.Optional; +import java.util.function.Function; public interface RecipeHelper { @@ -106,10 +107,10 @@ public interface RecipeHelper { void registerSpeedCraftButtonArea(Identifier category, ButtonAreaSupplier rectangle); /** - * Registers a default speed crafting button area, which is bottom right - * * @param category the category of the button area + * @deprecated Not required anymore */ + @Deprecated void registerDefaultSpeedCraftButtonArea(Identifier category); /** @@ -183,6 +184,13 @@ public interface RecipeHelper { */ Optional<DisplaySettings> getCachedCategorySettings(Identifier category); + /** + * Registers a live recipe generator. + * + * @param liveRecipeGenerator the generator to register + * @apiNote Still work in progress + */ void registerLiveRecipeGenerator(LiveRecipeGenerator liveRecipeGenerator); + <T extends Recipe<?>> void registerRecipes(Identifier category, Class<T> recipeClass, Function<T, RecipeDisplay> mappingFunction); } |
