aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
AgeCommit message (Collapse)Author
2021-03-23fix(rendering): brightness of no-z-fighting offset facesLéa Gris
Ignore the z-fighting offset when detecting if a face uses the block's brightness or the brightness from the block above.
2021-03-12requested changesLéa Gris
- Fix modifiers order - Fix redundant string literal - Fix indentation - fix missing run()
2021-03-11Minor improvementsbartimaeusnek
2021-03-11Implemented Builder Patternbartimaeusnek
2021-03-10Missed onebartimaeusnek
2021-03-10Added a few safety measurementsbartimaeusnek
2021-03-10Implemented Requestsbartimaeusnek
2021-03-10Refactor World Eventsbartimaeusnek
World events have way to many parameters, so the code gets unreadable, this commit fixes that behavior.
2021-03-03impr(rendering): Machine block casts an ambient occlusion shadowLéa Gris
- Implement the missing ambient occlusion shadow from machine block over neighbour blocks. - Fix the LightingHelper to properly shade pipes/cables/wires against an opaque block. - Refactor and cleanup the GT_Block_Machines class of all bad practices and code smell, checked and validated with Sonarlint.
2021-02-16feat(render): tile ambient occlusionLéa Gris
Render smooth lighting ambient occlusion on all Gregtech tiles: - Ores - Machines - Pipes, Cables, Wires, Frames Add new Client-side configuration entry in Gregtech.cfg. If false, the flat lighting rendering of older versions is used. ```yml render { B:TileAmbientOcclusion_true=true } ```
2021-01-31BasicMachine fluid tank manipulations in GUIGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2021-01-18Merge pull request #410 from albus12138/fix_multiblock_tooltip_errorMartin Robertz
Fix multiblock machine tooltip error
2021-01-18Replace tab with 4 spacesr4phael
2021-01-17Fix multiblock machine tooltip errorr4phael
2021-01-16Better fix.Jason Mitchell
Should be isStringValid(), not isStackValid()
2021-01-16Fix crash with speedupJason Mitchell
Not entirely sure why, but this causes a crash when registering modular armor because it can't find the ic2 good circuit...
2021-01-17Changed removing part with O(n) instead of O(n^2)TimeConqueror
2021-01-17One more changes to immutableTimeConqueror
2021-01-17Added immutable version of getOres method, which is faster due to not using ↵TimeConqueror
#addAll
2021-01-08Merge pull request #394 from GTNewHorizons/infinty-chest-compatibiletyMartin Robertz
infinity chest compatibiltey
2021-01-05Speed up removals even moreJason Mitchell
2021-01-03infinity chest compatibilteybotn365
add more compatibilety for inventory that store more then a stack of items in 1 slot libe barrels and infinity chest
2021-01-021) Remove mAddGTRecipesToIC2Machines (stolen from @Glease)Jason Mitchell
2) Batch (most) recipe map removals and additions (significant speedup) 3) Modernize old java constructs --> java8 (in the files touched)
2020-12-31Implemented ReverseRecipesbartimaeusnek
2020-12-31Disassembler reworkbartimaeusnek
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-12-19use getAccesble slots againkorneel vandamme
2020-12-13Cache steam fluid IDs on startup and use those instead of string ↵Jason Mitchell
comparisions everywhere. NOTE: Also drops MFR steam compat
2020-12-05This makes batteries drain/charge their tier loss extra charging their ↵David Lindström
contained machines buffer
2020-11-27fix-infinit-whilebotn365
fix porention infinit while loop wit barrels/drawers
2020-11-26isRecipeInputEqual optimization (#351)Uristqwerty
* Optimize GT_Recipe.isRecipeInputEqual Used HEAVILY to catch duplicate recipes during game startup. Worst-case, it would result in 5 GT_OreDictUnificator.get calls for each pair of inputs. Instead, this is closer to 1 + 1/N, and as an added bonus, the modified unification it now uses doesn't copy its output only for it to be discarded immediately after comparison. Apart from inproved startup times, this might make a small difference when machines switch recipes. I am making an assumption that GT_OreDictUnificator.get(true, GT_OreDictUnificator.get(false, stack)) is equivalent to a just GT_OreDictUnificator.get(false, stack), and the original code only double-unificated because it was easier to code. If this turns out to be false, there's still some performance gain from factoring out the tStack unification, but some of the optimization here would be lost. * Changed method visibility according to PR feedback
2020-11-21Merge pull request #335 from Prometheus0000/LCE2Martin Robertz
Added IV HOG only LCE
2020-11-21Merge pull request #347 from GTNewHorizons/move-Item-optimazationMartin Robertz
Move item optimazation
2020-11-20Merge branch 'experimental' into LCE2Prometheus0000
2020-11-20Fix merger problemPrometheus0000000
2020-11-19Change all the multi tooltips over. Also changed tooltip class a bitPrometheus0000000
2020-11-20add suport for drawers and barrelskorneel vandamme
2020-11-18Add new method of displaying MB tooltips. LCR as example for nowPrometheus0000000
2020-11-16add moveMultipleItemStacks to utilskorneel vandamme
2020-11-15Clean up Extreme Diesel EngineGlease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2020-11-14Miners may actually detect ores by the oredictrepo_alt
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/5468
2020-11-03Minor text fixesPrometheus0000000
2020-09-09replace HashMap with a (bounded) Guava Cacherepo_alt
2020-09-08A simple cache for the furnace recipes, to avoid linear iterationrepo_alt
(Should help with https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/6416)
2020-08-23Attempt at improving chest buffers, also slowing down lower tier ones.moller21
2020-07-31Better optimization for moving items between inventories.Kalle
2020-07-29Simple optimization to GT_Utility.moveOneItemStackKalle
2020-06-09Fixed NEI time value for Replicatorsbartimaeusnek
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
2020-06-01Added gui's for the rest of em covers.moller21
2020-05-16bee changesDreamMasterXXL
Autoclave get a new input slot
2020-05-10Merge pull request #281 from moller21/coverguis2Martin Robertz
Cover GUI's take 2