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 15
15
import thaumcraft .api .aspects .Aspect ;
16
16
import thaumcraft .api .aspects .AspectList ;
17
17
18
+ import java .util .Collection ;
19
+
18
20
public interface ArcaneRecipeBuilder {
19
21
20
22
@ RecipeBuilderMethodDescription
@@ -23,6 +25,18 @@ public interface ArcaneRecipeBuilder {
23
25
@ RecipeBuilderMethodDescription (field = "aspects" )
24
26
ArcaneRecipeBuilder aspect (AspectStack aspect );
25
27
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
+
26
40
@ RecipeBuilderMethodDescription (field = "aspects" )
27
41
default ArcaneRecipeBuilder aspect (String tag ) {
28
42
return aspect (tag , 1 );
You can’t perform that action at this time.
0 commit comments