diff options
author | SKProCH <29896317+SKProCH@users.noreply.github.com> | 2023-09-05 07:54:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 06:54:47 +0200 |
commit | 8beb872db7d19665a09518c5a5d90577b9f3f847 (patch) | |
tree | a024db315009e544c2ffc1a0a87dc9a82692d157 /src/main/java/gregtech/api/graphs/PowerNodes.java | |
parent | 1249b547f0813db813d1c12713b5dafbf46996df (diff) | |
download | GT5-Unofficial-8beb872db7d19665a09518c5a5d90577b9f3f847.tar.gz GT5-Unofficial-8beb872db7d19665a09518c5a5d90577b9f3f847.tar.bz2 GT5-Unofficial-8beb872db7d19665a09518c5a5d90577b9f3f847.zip |
Proper recipe selection for output overflow in LCR and other multiblocks (#2247)
* Implement Stream<FindRecipeResult> findRecipesWithResult for GT_RecipeMap
* Change ProcessingLogic.process to actually use new findRecipesWithResult
* Change ProcessingLogic.process to start finding something only for OUTPUT_FULL result
* Refactor ProcessingLogic.process to make logic more readable
* Replace while with for loop, remove NOT_FOUND return in end of findRecipesWithResult
* Apply spotless
* Make findRecipe use findRecipes, add annotation to GT_Recipe and FindRecipeResult for processRecipe and make method protected, replace wildcard imports
* Remake isRecipeWithOutputFullFound
* Add @Nonnull to methods
* Apply spotless
* Remove Stream version of findRecipeWithResult, replace with predicate one. Add GT_Predicated_Recipe_Map class for utilizing this method. Changes some existent recipe maps to inherit from base class.
* Remove GT_Predicated_Recipe_Map, add Predicate directly to GT_Recipe_Map#findRecipeWithResult. Add AdvancedRecipeValidatorPredicate and FindRecipeWithAdvancedValidatorResult to allow store validation calculations for further use and proper errors displaying.
* Fix InsufficientVoltage errors
* Changes according to review comments. Integrate FindRecipeWithAdvancedValidatorResult to FindRecipeResult, rename AdvancedRecipeValidatorPredicate, encapsulate AdvancedRecipeValidatorPredicate fields, fixes some typos, etc
* Moves InsufficientVoltage check to GT_ParallelHelper. Removes FindRecipeResult#State#INSUFFICIENT_VOLTAGE
* Return an old findRecipeWithResult
* Renames things, call old methods for singleblocks
* Renames things, makes FindRecipeResult ctor private
* Apply spotless
* Move RecipeValidator, fix comments typos
Diffstat (limited to 'src/main/java/gregtech/api/graphs/PowerNodes.java')
0 files changed, 0 insertions, 0 deletions