aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/gregtech/overclock
AgeCommit message (Collapse)Author
2024-09-05Enhance GPL for several multis (#3071)HoleFish
Co-authored-by: Martin Robertz <dream-master@gmx.net>
2024-09-04Fixes #17207 (#3041)joegnis
Changed methods in OverclockCalculator: - setEUtDiscount - setSpeedBoost - setHeatDiscountMultiplier Most of other changes are directly related to them. Adds a unit test. Co-authored-by: boubou19 <miisterunknown@gmail.com>
2024-09-02The Great Renaming (#3014)NotAPenguin
* move kekztech to a single root dir * move detrav to a single root dir * move gtnh-lanthanides to a single root dir * move tectech and delete some gross reflection in gt++ * remove more reflection inside gt5u * delete more reflection in gt++ * fix imports * move bartworks and bwcrossmod * fix proxies * move galactigreg and ggfab * move gtneioreplugin * try to fix gt++ bee loader * apply the rename rules to BW * apply rename rules to bwcrossmod * apply rename rules to detrav scanner mod * apply rename rules to galacticgreg * apply rename rules to ggfab * apply rename rules to goodgenerator * apply rename rules to gtnh-lanthanides * apply rename rules to gt++ * apply rename rules to kekztech * apply rename rules to kubatech * apply rename rules to tectech * apply rename rules to gt apply the rename rules to gt * fix tt import * fix mui hopefully * fix coremod except intergalactic * rename assline recipe class * fix a class name i stumbled on * rename StructureUtility to GTStructureUtility to prevent conflict with structurelib * temporary rename of GTTooltipDataCache to old name * fix gt client/server proxy names
2024-08-17Fix OverclockCalculator (#2901)HoleFish
Co-authored-by: Martin Robertz <dream-master@gmx.net>
2024-05-03Slight change to ampoc logic (#2590)chochem
* better safeguard for negative oc count. * add new unit test
2024-02-26Make some changes to OC Calculator to add functionality to be used by God ↵BlueWeabo
Forge (#2508) * make the overclock calculator capable of weirder overclocks for god forge * add tests for such cases * fix documentation of some methods and variables * deprecate methods and fix most of the indenting * use javadoc deprecation too
2024-01-24Fix oc calculator (#2474)chochem
* add new test * voltage difference check iff no amperageOC * fix doubleEnergyHatchOC_Test (passes either way but is coded this way)
2023-10-09Add OC test for 3 ticks to 1 tick (#2329)miozune
2023-10-07- fixes ↵iamblackornot
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/14559 (#2325) - had to change 2 unit test to address the mentioned above OC calculation fix Co-authored-by: iamblackornot <nkzshinnnik@gmail.com>
2023-08-26fix ulv recipes being broken again when under 1 tick calculation is taken ↵BlueWeabo
(#2254)
2023-08-13Fix overclock calculator calculating eu/t use for ulv recipe wrong on ↵BlueWeabo
certain parallel (#2225) * fix overclock calculator calculating eu/t use for ulv recipe wrong on certain parallel * make formula into its own method
2023-08-10Fix PAs overclocking ulv recipes too much (#2220)BlueWeabo
* fix PAs overclocking ulv recipes too much * make sure we save the returned value
2023-07-30Fix Overclock Calculator Making Too many parallels and wrong eut consumption ↵BlueWeabo
(#2190) * fix overclock calculator making too many parallels and wrong eut consumptions * fix duration increase when trying to do a noOverclock calculator * spotless * add correct api for no overclock * address review
2023-07-28Add more API to ParallelHelper and rework OverclockCalculator (#2185)BlueWeabo
* refactor OC calc * somewhat refactor parallel helper * fix PA not OCing correctly no clue why it wasn't using super and then setting the duration again. * make use of new api to make fusion cleaner * make batch mode actually dynamic * add another reason for 0 parallel * move variables around to try and group them together * address reviews * add overclocking past 1 tick by adding parallels * add null check and make a basic calculator to prevent npe * check null recipeMap supplier * address reviews * addressing of reviews * make it possible to call some OverclockCalculator methods through static methods * address reviews * make sure one doesn't get too many OCs when calculatin under 1 tick * add api for custom duration under one tick and fix batch mode doing 0 ticking * fix not calculating duration under 1 tick correctly * spotless * try to have correct eut consumption * address review * make sure mk5 fusion is said in nei * fix eutCalculating under one tick way too much and address reviews * remove roundUp voltage
2023-05-05fix (#1951)BlueWeabo
2023-04-10Update spotless config to 0.2.2Raven Szewczyk
2023-04-01update spotless formatting (#1827)boubou19
2023-01-30[ci skip] spotlessApply with the new settingsJason Mitchell
2023-01-25Fixes OC Calculation not accounting eut discount for low eut recipes (#1685)BlueWeabo
* fix * typo fixes Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fixTyposInParallelHelper * sa Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Co-authored-by: Glease <4586901+Glease@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
2023-01-07remove exception, instead calculate (#1638)BlueWeabo
2023-01-01Add a Overclock Calculator for multis and the like to use (#1617)BlueWeabo
* add calculator and unit tests * use math.ceil * math.ceil everywhere * add some more unit tests and add onetick discount possibility * add an exception when trying to get the consumption before calculating * spotless oops * convert PCB Factory to use the OC calculator * fix tests trying for wrong values * fix copy paste error * address reviews * this should be there too.