aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/multitileentity
diff options
context:
space:
mode:
authorSKProCH <29896317+SKProCH@users.noreply.github.com>2023-09-05 07:54:47 +0300
committerGitHub <noreply@github.com>2023-09-05 06:54:47 +0200
commit8beb872db7d19665a09518c5a5d90577b9f3f847 (patch)
treea024db315009e544c2ffc1a0a87dc9a82692d157 /src/main/java/gregtech/api/multitileentity
parent1249b547f0813db813d1c12713b5dafbf46996df (diff)
downloadGT5-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/multitileentity')
0 files changed, 0 insertions, 0 deletions