aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-07-15 15:36:25 +0800
committershedaniel <daniel@shedaniel.me>2020-07-15 15:36:25 +0800
commit7d1e39007a1e7de6fd0381fa1e21cf9b6e927f97 (patch)
treefc4634e051a672d5a0a3d937354e28ce342e00c3 /src/main/java/me/shedaniel/rei/api/RecipeHelper.java
parentc55a37bc522f0996862017031ff0322756f7b0a6 (diff)
downloadRoughlyEnoughItems-7d1e39007a1e7de6fd0381fa1e21cf9b6e927f97.tar.gz
RoughlyEnoughItems-7d1e39007a1e7de6fd0381fa1e21cf9b6e927f97.tar.bz2
RoughlyEnoughItems-7d1e39007a1e7de6fd0381fa1e21cf9b6e927f97.zip
Rewrite composting code and add registerCategories
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RecipeHelper.java12
1 files changed, 12 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 26f17e81f..04b699b5a 100644
--- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
+++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
@@ -82,6 +82,18 @@ public interface RecipeHelper {
*/
void registerCategory(RecipeCategory<?> category);
+ default void registerCategories(Iterable<RecipeCategory<?>> categories) {
+ for (RecipeCategory<?> category : categories) {
+ registerCategory(category);
+ }
+ }
+
+ default void registerCategories(RecipeCategory<?>... categories) {
+ for (RecipeCategory<?> category : categories) {
+ registerCategory(category);
+ }
+ }
+
/**
* Registers the working stations of a category
*