aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
AgeCommit message (Collapse)Author
2023-01-10Fix breaking drawer voids items (#1645)miozune
2023-01-10Allow earlier initialization of exotic fluid cells (#1644)miozune
* Allow earlier initialization of exotic fluid cells * Rename method and move initialized check to inside * Use null check and remove mHasNotBeenInitialized * Always set itemstack * address review * address review * Update javadoc * Refactor tryToInitialize * Remove isStackAlreadySet from ID collision check
2023-01-08emergency fix for NPE in #1641 (#1643)Glease
2023-01-08allow filtering what is accepted in a fluid slot (#1641)Glease
2023-01-08Make GT_FluidDisplayItem.getChemicalFormula static (#1640)miozune
2023-01-06Optimize `denyMobSpawn` slightly. (#1633)Jason Mitchell
* Optimize `denyMobSpawn` slightly. * Don't try to load the tile if we're outside of the max possible range of a Repellent
2023-01-05Allow overriding more progressbar textures & Add document for resource packs ↵miozune
(#1632)
2023-01-02add callhook for pre block destroy (#1625)Glease
* add callhook for pre block destroy Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * spotless Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
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.
2023-01-01fix LV steam valve (#1624)chochem
2022-12-30Improve NEI customizability (#1583)miozune
* Move descriptions to recipemap * Move tooltips to recipemap * Move overlays to recipemap * Use shared code for generating grid positions * 2 fluid inputs for freezer recipes * Add deprecation javadoc
2022-12-30possible fix (#1614)Martin Robertz
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/12139 (cherry picked from commit 64f7433f2fab2eff618bb25997c303516fdab3f8)
2022-12-29Fix plasma turbine EU output (#1607)Connor-Colenso
* Revert "Turbine efficiency helper (#1562)" This reverts commit 3c852a0143cbfa864da59bdd0b2edab1fa4bf146. * Restore efficiency helper * Spotless Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>
2022-12-29Fix inconsistency in naming (#1606)LewisSaber
2022-12-28fix (#1605)BlueWeabo
2022-12-28Remove void break from fluid tanks and chests (#1602)NexusNull
* Remove void break from fluid tanks Previously, sneaking while breaking a fluid tank would void the contents of the tank, leading to potential loss of valuable resources. However, this behavior is not consistent with other blocks, such as chests and furnaces, which retain their contents when broken while sneaking. This commit removes the sneak breaking voiding behavior for fluid tanks, bringing them in line with other blocks and reducing the risk of unintended loss for players. * run spotless * fix stray check for voidBreak Signed-off-by: NexusNull <p.wellershaus@googlemail.com> * remove override Signed-off-by: NexusNull <p.wellershaus@googlemail.com> * remove void tooltip Signed-off-by: NexusNull <p.wellershaus@googlemail.com> Signed-off-by: NexusNull <p.wellershaus@googlemail.com>
2022-12-28make sugar maceration recipe shorter (#1586)Martin Robertz
* make sugar maceration recipe shorter (cherry picked from commit 55d85dc6ab315da3eb31e41667317e127a2059fe) * spotlessApply (#1587) Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: GitHub GTNH Actions <> * fix reed to sugar recipe Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-28adds molds and recipe generation (#1603)BlueWeabo
2022-12-28fix oredict name (#1600)Runakai1
Fix wrong oredict for blizz comb
2022-12-28Add colored voltage tier display for Waila (#1598)miozune
* Add colored voltage tier display for Waila * Adapt to new methods
2022-12-28Allow resource packs to override individual progressbar textures (#1596)miozune
* Allow resource packs to override individual progressbar textures * spell: every + singular * Fix potential crash on server with FallbackableSteamTexture
2022-12-28Fix tooltip for required input hatches (#1599)MadMan310
2022-12-27fix it (#1597)BlueWeabo
2022-12-23add NEI handler for ic2 fuel rods (#1580)Glease
* add NEI handler for ic2 fuel rods Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix typo Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * rename variable to cover up the original intention Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2022-12-22oversight (#1578)Yang Xizhi
2022-12-21fixed it (#1577)BlueWeabo
2022-12-21fix huge power drain from me output hatch (#1573)Yang Xizhi
2022-12-20Don't allow inserting item into solar boiler for fuel and ash slots (#1568)miozune
2022-12-20Uv lock (#1564)Léa Gris
* fix(GT_TextureBuilder): State check belongs to the build method. * fix(texture): lock orientation of large turbine controller Large turbine controllers displays the rotor's center of a 3-by-3 connected textures displayed on surrounding casings. To keep the rotor's center seamlessly aligned with the connected textures from the casings, it need to UV lock its orientation. Addresses issue: https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11953 * fix(GT_TextureBuilder): correctly check worldCoord's state
2022-12-19Fix PCB Factory 4th time the charm (#1560)BlueWeabo
* why does this keep happening * jave is bull shit * oooops * final fix * add location for the coolant hatch
2022-12-19Fix crash with Integrated Ore Factory and Nuclear Control (#1559)miozune
2022-12-18Turbine efficiency helper (#1562)Connor-Colenso
* Add value to automatically determine highest possible turbine efficiency. * spotlessApply (#1563) Co-authored-by: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> Co-authored-by: GitHub GTNH Actions <> Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-18Fix Regulator cannot control stack size of ghost slot (#1558)miozune
2022-12-17More Fixes to the PCB Factory (#1554)BlueWeabo
* why am I so bad at spotting bugs * fixes fixes fixes, who needs to reset multipliers * remove the comment * fix oc oops * fix the roughnessMultiplier * fix accidental energy discount * remove the useless hatch boolean * fix units
2022-12-17another attempt at lag fixing (#1556)Glease
* another attempt at lag fixing Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix tests Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix tests 2/2 Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * address review Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * get rid of GT_Test Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2022-12-17Show fluid registry tooltip when advanced item tooltip is enabled for fluid ↵miozune
display item (#1555)
2022-12-15Fix ore factory stocking bus integration (#1551)Dakota Jones
2022-12-14Fix more things (#1550)BlueWeabo
* fix recipes not working, fix scanner data, fix recipes * add amps display, fix tier 1 being broken oops
2022-12-14Do some fixes for the PCB Factory (#1549)BlueWeabo
* fixes all over the place * shouldn't have edited that * make easier to understand
2022-12-14ensure machine controller incompatible with redstone receiver (#1547)Glease
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2022-12-14PCB Factory Edits (#1544)Sampsa
* Improve tooltip and flavortext of PCB Factory * Change roughness to trace size * spotlessApply (#1545) Co-authored-by: Sampsa <69092953+S4mpsa@users.noreply.github.com> Co-authored-by: GitHub GTNH Actions <> * fix a crash with autobuild * Fix LanguageManager * hate these texture bugs and typos from myself * fix number and unit spacing * off by 1 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: BlueWeabo <76872108+BlueWeabo@users.noreply.github.com>
2022-12-14make covers actually insensitive to redstone if it doesn't need it (#1546)Glease
* make covers actually insensitive to redstone if it doesn't need it Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix machine controller redstone sensitivity Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
2022-12-13Nanite material and circuit board multi for later tiers (#1513)BlueWeabo
* Base work for ModularUI compat * Remove useless interface * Add almost all the widgets * Invert method * Refactor NEI stack placement positions * NEI handlers on ModularUI * Add some more docs * AdvDebugStructureWriter * Fix NEI progressbar not working * PrimitiveBlastFurnace * clean * derp * clean * spotlessApply * Boilers * Buffers * clean * N by N slots containers * Fix boilers not having bucket interaction Put opening UI to individual MetaTEs * Maintenance Hatch * clean * spotlessApply * Add dependency * IndustrialApiary * Adapt to ModularUI change * Base work for covers & fix crash with MP * Fix crash with server * Rewrite base work for covers * Send initial cover data on cover GUI open so that the time of showing incorrect data will be eliminated * Covers part 1 * Rename package: ModularUI -> modularui * Rename class: GT_UIInfo -> GT_UIInfos * Fix build * Covers part2 * Fix missing client check with tile UI & fix title overlap * CoverTabLine * Move cover window creators to inner class * Fix crash with null base TE * Close GUI when tile is broken * Color cover window with tile colorization * add nanites as a material * spotless * start the work on the nanites multi * spotless * Change signature of addUIWidgets * FluidFilter cover, FluidDisplaySlotWidget, BasicTank, BasicGenerator, Output Hatch, MicrowaveEnergyTransmitter, Teleporter, DigitalChest, DigitalTank * Add title tab * Move package: modularui -> modularui/widget * add controller recipe and new casing * add prefix and the casing and controller to the item list * add nano forge controller to its item * add nanites to PreLoad * Programmed circuit + IConfigurationCircuitSupport * clean * add nano forge multi - complete with some recipes * new nanite textures * Apply spotless * fix nanites not registering, remove recipe lock on the nano forge, other small fixed no clue why they didn't want to register in run2. * VolumetricFlask * Remove integrated circuit overlay from recipe input slots * Input Hatch & Quadruple Input Hatch * Multiblock * Deprecate old cover GUI * BasicMachines * Finish BasicMachine & NEI * Expand DTPF NEI to 9 slots * Fix ME input bus on MP * Move AESlotWidget to public class * Move GT_Recipe_Map constructors with mNEIUnificateOutput to setter method * Move SteamTexture.Variant to outer enum * Switch to remote repository * oops * Update MUI * Update MUI * Minor refactor for change amount buttons * the start of a new multi, tooltip WIP * Display items and fluids that exceed usual count * blah * use +=, why didn't I do this * add tier 2 and tier 3. add some more checks * Update MUI * Move ModularUI to Base (#1510) * Move ModularUI to Base * Move most of the ModularUI functionality to `BaseTileEntity` (and `CoverableTileEntity`) * `CommonMetaTileEntity` delegates ato the MetaTileEntity * Added several interfaces (with defaults) to indicate if a tile/metatile override/implement certain behaviors. * Moved `IConfigurationCircuitSupport` interface such that it will work with BaseTileEntity or a MetaTileEntity * Address reviews Co-authored-by: miozune <miozune@gmail.com> * Update MUI * make a single shape rotatable by 90 degrees * Minor changes to NEI * more shapes, more mechanics * Return :facepalm: * IGetTabIconSet override * Some more changes to NEI * Merge texture getter interfaces to new class GUITextureSet * Remove BBF structure picture as it's auto-buildable now * Make unified title tab style of texture angular * Expose some boiler texture getters for addon * Fix crash with cover GUI on pipe * small changes * Lower the number of recipe per page for DTPF & update MUI * Update MUI * Fix crash with middle-clicking slot on circuit selection GUI * Fix circuit selection window not syncing item from base machine * Merge GT_NEI_AssLineHandler into GT_NEI_DefaultHandler * Update MUI * Add in TecTech multi message * Allow changing the way of binding player inventory * Update MUI * Update MUI * Update MUI * Update MUI * Update MUI * Make MUI non-transitive to allow addons to use their own version * Force enable mixin * Format fluid amount tooltip * Add GUITextureSet.STEAM * Add guard against null ModularWindow creation * Add constructors for Muffler Hatch with inventory * Fix output slot on digital chest and tank allowing insertion * Don't log null ModularWindow * add a new material, add some recipes, continue the work on the PCB factory. The first recipe is in! * oops spotless * update bs * rename casings * make material generate plates * add recipes to the pcb factory * nei handling * do some more work on the multi * fixes to recipes. * Update build-and-test.yml * starter work on the PCBFactory GUI. recipe check fully working * finish gui work * spotless thank god drafts don't generate spotless PRs * final touches. tooltip tomorrow * fix typos. and finish PCB multi. * spotless * changes for requests * make consumed amount a constant * fix recipes oopsie * Remove unused textures * Add nanites * fixing recipes * Fix NEI not showing * Make nanites share texture * actually fix recipes and use 2 new lenses * finally circuits work in recipe * Add trans metal block * add default offsets * spotless * make parallels actually work * Downscale nanite texture to 64x64 * improve PCB Factory GUI * finish fixing gui, fix offsets on cooler, apply a new formula for duration * Clean up PCB Factory tooltip * Spotless * Fix typo in Naquadah * make sure the roughness multiplier actually slows down the recipe XD * add a smaller limit to the roughness multipler.... lets not allow for 10x board prodction oops * fix cooler tier 2 using wrong block in its center, fix controller texture on tier 3 * update mui and uodate the button texture * fix one button and prevent null arrays * remove some math. a small rework on recipes * fix and off by 1 * save the change? never heard of it * fix tier 3 not forming * Nano forge tooltip * hopefully fix nano forge. fix neutroni nanite wrong tier in recipe * try 2 to fix structure check * fix nano forge not forming * fix nano forge data stick. we need better error messages * do some fixes. * its 12am, typos.... * never coding at midnight again * try 2 to fix nano forge and pcb factory * fix nano and pcb factory not working. address some reviews * do syncing between client and server. fix recipes asking too much power with multiple upgrades Co-authored-by: miozune <miozune@gmail.com> Co-authored-by: Jason Mitchell <mitchej@gmail.com> Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> Co-authored-by: Sampsa <sampo.vanninen@aalto.fi>
2022-12-13Fix incorrect index used for Item Filter (#1543)miozune
2022-12-12Add Kevlar Bee and remove autoclave recipes (#1540)Runakai1
* Kevlar, Autoclave and Fixes Removed Autoclave recipes since it needs to be reworked. Useless recipes right now. Added kevlar bee to be used in Quantum Forcer Fixed Lithium bee * fixed some stuff * spotless * spotlessApply (#1541) Co-authored-by: Runakai1 <48415331+Runakai1@users.noreply.github.com> Co-authored-by: GitHub GTNH Actions <> * remove commented out code * missed one Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: BlueWeabo <76872108+BlueWeabo@users.noreply.github.com>
2022-12-11Add hazmat protection to End Steel / Stellar armors from EnderIO (#1539)miozune
2022-12-03Show hatches on Oil Cracker NEI structure (#1534)Jakub
* CRACKER * Auto placement work, but I'm sad :-1: * Structure guidelines
2022-12-03lower the entry barrier for extreme diesel engine (#1533)Glease
2022-12-02Fix item input positions for basic machines (#1531)miozune
2022-12-02reduce replicator power consumption by 1/16 to allow cable loss (#1532)Glease