File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/main/java/com/cleanroommc/groovyscript/compat/mods/thaumcraft/arcane Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1515import thaumcraft .api .aspects .Aspect ;
1616import thaumcraft .api .aspects .AspectList ;
1717
18+ import java .util .Collection ;
19+
1820public interface ArcaneRecipeBuilder {
1921
2022 @ RecipeBuilderMethodDescription
@@ -23,6 +25,18 @@ public interface ArcaneRecipeBuilder {
2325 @ RecipeBuilderMethodDescription (field = "aspects" )
2426 ArcaneRecipeBuilder aspect (AspectStack aspect );
2527
28+ @ RecipeBuilderMethodDescription (field = "aspects" )
29+ default ArcaneRecipeBuilder aspect (AspectStack ... aspect ) {
30+ for (var entry : aspect ) aspect (entry );
31+ return this ;
32+ }
33+
34+ @ RecipeBuilderMethodDescription (field = "aspects" )
35+ default ArcaneRecipeBuilder aspect (Collection <AspectStack > aspect ) {
36+ for (var entry : aspect ) aspect (entry );
37+ return this ;
38+ }
39+
2640 @ RecipeBuilderMethodDescription (field = "aspects" )
2741 default ArcaneRecipeBuilder aspect (String tag ) {
2842 return aspect (tag , 1 );
You can’t perform that action at this time.
0 commit comments