-
Notifications
You must be signed in to change notification settings - Fork 211
Expand file tree
/
Copy pathAssemblerRecipeBuilder.java
More file actions
42 lines (33 loc) · 1.09 KB
/
Copy pathAssemblerRecipeBuilder.java
File metadata and controls
42 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package gregtech.api.recipes.builders;
import gregtech.api.recipes.Recipe;
import gregtech.api.recipes.RecipeBuilder;
import gregtech.api.recipes.RecipeMap;
public class AssemblerRecipeBuilder extends RecipeBuilder<AssemblerRecipeBuilder> {
private boolean withRecycling;
public AssemblerRecipeBuilder() {/**/}
@SuppressWarnings("unused")
public AssemblerRecipeBuilder(Recipe recipe, RecipeMap<AssemblerRecipeBuilder> recipeMap) {
super(recipe, recipeMap);
}
public AssemblerRecipeBuilder(AssemblerRecipeBuilder recipeBuilder) {
super(recipeBuilder);
if (recipeBuilder.isWithRecycling()) {
this.withRecycling = true;
}
}
@Override
public AssemblerRecipeBuilder copy() {
var builder = new AssemblerRecipeBuilder(this);
if (withRecycling) {
return builder.withRecycling();
}
return builder;
}
public AssemblerRecipeBuilder withRecycling() {
withRecycling = true;
return this;
}
public boolean isWithRecycling() {
return withRecycling;
}
}