diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-07 12:09:48 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-07 12:09:48 +0800 |
| commit | 6fdbd7b5581a1536e644517987c3ba5e631f5c1d (patch) | |
| tree | 71d5b6ec17e88c5a7bafb5b529d4864b7a2be452 /src/main/java/me/shedaniel/rei/api/RecipeHelper.java | |
| parent | 1f5ab59c04dd04918131c3d3942057e1969277c5 (diff) | |
| download | RoughlyEnoughItems-6fdbd7b5581a1536e644517987c3ba5e631f5c1d.tar.gz RoughlyEnoughItems-6fdbd7b5581a1536e644517987c3ba5e631f5c1d.tar.bz2 RoughlyEnoughItems-6fdbd7b5581a1536e644517987c3ba5e631f5c1d.zip | |
2.9.4
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java index cfbda23f0..ca0202d1f 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -15,6 +15,7 @@ import java.util.List; import java.util.Map; import java.util.Optional; import java.util.function.Function; +import java.util.function.Predicate; public interface RecipeHelper { @@ -194,6 +195,8 @@ public interface RecipeHelper { */ boolean isDisplayVisible(RecipeDisplay display); + <T extends Recipe<?>> void registerRecipes(Identifier category, Predicate<Recipe> recipeFilter, Function<T, RecipeDisplay> mappingFunction); + /** * Gets the cached category setting by the category identifier * |
