Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinct Fluid Behaviour and Recipe Runner Refactor #2544

Draft
wants to merge 18 commits into
base: 1.20.1
Choose a base branch
from

Conversation

YoungOnionMC
Copy link
Member

What

Refactored how the recipe runner class handled searching and consuming contents of a recipe based on the current handler trying to process that recipe, in short distinct fluid hatches are now possible.

Implementation Details

Refactors out the recipe handling related functions out of GTRecipe and into their own class RecipeHandler, switched the capability proxy table into a double nested map for better clarity. Unified RecipeRunner to handle the entire map of recipe contents at once instead of on a per capability basis. Got rid of references to the unused slot naming system in recipe searching and handling. Adds Recipe ActionResults to various method for logging how a recipe search or handle method failed

Outcome

TBD

@YoungOnionMC YoungOnionMC added the Do Not Merge DO NOT MERGE THIS PR YET! label Dec 16, 2024
… into yo/distinctness

# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/api/item/tool/ToolHelper.java
#	src/main/java/com/gregtechceu/gtceu/api/machine/feature/IRecipeLogicMachine.java
#	src/main/java/com/gregtechceu/gtceu/api/machine/steam/SimpleSteamMachine.java
#	src/main/java/com/gregtechceu/gtceu/api/machine/trait/RecipeLogic.java
#	src/main/java/com/gregtechceu/gtceu/api/recipe/GTRecipe.java
#	src/main/java/com/gregtechceu/gtceu/api/recipe/RecipeHelper.java
#	src/main/java/com/gregtechceu/gtceu/api/recipe/content/Content.java
#	src/main/java/com/gregtechceu/gtceu/api/recipe/modifier/RecipeModifierList.java
#	src/main/java/com/gregtechceu/gtceu/common/data/GTRecipeModifiers.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/electric/DistillationTowerMachine.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/generator/LargeCombustionEngineMachine.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/steam/SteamParallelMultiblockMachine.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/trait/BedrockOreMinerLogic.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/trait/FluidDrillLogic.java
#	src/main/java/com/gregtechceu/gtceu/common/machine/trait/NotifiableStressTrait.java
#	src/main/java/com/gregtechceu/gtceu/test/GTGameTests.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do Not Merge DO NOT MERGE THIS PR YET!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant