forked from GregTechCEu/GregTech
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow multiple build actions per recipemap (GregTechCEu#2278)
- Loading branch information
1 parent
aff043c
commit edbdaf4
Showing
5 changed files
with
150 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gregtech.api.recipes; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
@FunctionalInterface | ||
public interface RecipeBuildAction<R extends RecipeBuilder<R>> { | ||
|
||
/** | ||
* Process a RecipeBuilder to perform an action with. | ||
* <p> | ||
* <strong>Do not call {@link RecipeBuilder#buildAndRegister()} on the passed builder.</strong> | ||
* It is safe to do so only on other builders, i.e. created through {@link RecipeBuilder#copy()}. | ||
* | ||
* @param builder the builder to utilize | ||
*/ | ||
void accept(@NotNull R builder); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.