aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
AgeCommit message (Collapse)Author
2023-12-03Fix non-MUI way used for syncing itemstack (#2387)miozune
2023-12-03Widen text field of ME input hatches (#2382)HoleFish
* me input bus * me input hatch
2023-12-03Plasma Mixer: only consume power when recipe starts. Fixes #14895. (#2375)Alex Bee
2023-11-27Always enable all material components (#2380)miozune
2023-11-25DTPF batch mode (#2372)HoleFish
* apply ProcessingLogic * spotless and delete useless method
2023-11-25Show rotation grid direction for IC2 wrenchable and vanilla (#2377)ghostflyby
2023-11-22Fix wrench opening gui when rotating some blocks (#2376)ghostflyby
2023-11-20Change to only allow connections when Redstone is needed (#2374)Ryan Nasers
* Change to only allow connections when Redstone is needed * Forgot spotless copium * Applying oneeyemaker changes
2023-11-14Harvest IC2 machine with wrench left click (#2365)ghostflyby
* Harvest IC2 machine with wrench left click * right click functions are left unchanged
2023-11-14Notifiy greg tech tile entities of world unload event (#2366)tth05
2023-11-10Add config to crash on null recipe input (#2360)miozune
2023-11-08Migrate to non-Object version Utility methods (#2359)ghostflyby
A few calls restricted by other methods and interfaces are left untouched.
2023-11-02Override allowPutStackkuba6000
2023-10-30Update commentkuba6000
2023-10-28Another check if autopull is availablePelotrio
2023-10-28Address requested changesPelotrio
2023-10-28Rename the hatches to make it consistent with `MetaTileEntityIDs`Pelotrio
2023-10-28Change casing tier to make it consistent with the coming recipesPelotrio
2023-10-28Add non-autopull version of stocking input bus/hatchPelotrio
2023-10-27Use new interface term API for cribs (#2314)firenoo
* Use new interface term API for cribs Requires new AE2 version before this works. * Update dependencies.gradle * sa * Update dependencies.gradle * Update dependencies.gradle * fix wrong tag (cherry picked from commit 5197207f744b5f7e65d229893b872af6608d8b25) * Update `ae2` and fix compatability --------- Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: Andrei Laiff <q.laiff@gmail.com>
2023-10-24New base and active textures for stocking input bus/hatch and ME output ↵tth05
bus/hatch (#2339) * Periodically update active state of ME hatches * Use HV casing textures for ME hatches * Add new textures for stocking input bus/hatch and me output bus/hatch --------- Co-authored-by: Pelotrio <45769595+Pelotrio@users.noreply.github.com>
2023-10-23Backport paint solvent from GTCEu (#2346)Caedis
2023-10-22implement drain for stocking input hatch (#2347)Glease
This is primarily used by depleteInput() from controller. only drain from internal source (i.e. ForgeDirection.UNKNOWN) is allowed
2023-10-21A new approach for block updates in BaseMetaTileEntity (#2342)iamblackornot
* - added 0,5s cooldown on BaseMetaTileEntity texture render update * - changed to RandomCooldown to make visual representation of the target object more relevant to its state * - implemented a BlockUpdateHandler, making the update cooldowns chunk-based - left commented out debug code * - now BaseMetaTileEntity tracks last time a texture update was issued and skips update if parent chunk was already updated since last update issue * - reworked BlockUpdateHandler to a singleton doing update work on client tick, this way update logic is fully encapsulated and gets rid of some comparisons needed to sync updates * - fixed a bug with crash on quitting the game - forgot to add moved sources - cleaned up debug code - added description commentary * - updated buildscript * - switched to internal tick counter, cause server time is unreliable and crashes client https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/14742 - removed subclass aliases - switched to XSTR instead of java's Random - IllegalArugmentException instead of InvalidParameterException - added client side config option to enable/disable this feature (by default is off) --------- Co-authored-by: iamblackornot <nkzshinnnik@gmail.com>
2023-10-20Implement ae2 part spray painting (#2344)Caedis
2023-10-19Fix fluid canner recipes not using correct empty container (#2337)miozune
* Fix fluid canner recipes not using correct empty container * Restore lava bucket fix * Remove now obsolete glass bottle handling + Javadoc
2023-10-19Fix locked fluid name not working correctly (#2341)miozune
2023-10-19Update valid grid proxy sides when rotating ME hatches (#2336)tth05
2023-10-18Fix stocking hatch might hold 0 amount of fluid after running recipe (#2340)miozune
* Fix stocking hatch might hold 0 amount of fluid after running recipe * now actually fix
2023-10-16Add stocking input hatch (#2322)tth05
* Add stocking input hatch * Refactor stocking input hatch UI code and fix some formatting * Add new visual changes from stocking bus and some refactoring * Remove drain/fill methods and fix tooltip * Split information slots into separate array and update MUI * Use inventory of size in constructor * Add assembly line support * Add amount to info slot tooltips and update tooltips every tick
2023-10-15Fix memory leak of player instances in CoverBehavior (#2333)tth05
* Use weak references to store last player in cover behavior * Remove duplicate lastPlayer field from GT_CoverBehavior
2023-10-13Fix Stocking Bus bug (#2326)miozune
* Shut down machine with message if stocking bus fail to extract items * Better way to handle message persistent on shutdown * Minor cleanup * Allow more localizations * Add network status display * Fix auto-pull mode accepting shift insert * Remove workaround for issue with multiple ME buses in a multiblock * Some tweak for appearance * Correct inconsistent variable naming in GT_UITextures * Update .gitignore * Fix typo * Remove isScheduledForResetCheckRecipeResult by using persistsOnShutdown * Apply "cannot set slot" tooltip for empty slots too
2023-10-09Allows covers to be configured to tick more slowly (#2307)querns
* Right clicking covers with a jackhammer will now make them tick more slowly * Interim commit, switching tasks * Finishes tick rate button in cover UIs * Change tick rate multiplier to a tick rate addition * Missed one number in the multiplier -> addition conversion * Hold Ctrl to adjust tick rate by 5 steps per click, move button closer to corner of cover GUI * Adjust how holding Ctrl computes tick rate change, remove gray formatting option for tick rate formatter * Cover tick rate addition can now be prevented per-cover-behavior, minor code tweaks
2023-10-08Fix server crash with Teleporter (#2327)miozune
2023-10-04Code cleanup (#2309)boubou19
* guard clause technique on GT_ItemIterator * removing oredict for ars magica 2 items * removing oredict for mystcraft items * convert big if ladder into a swtich statement * enhanced switch * clean non GTNH compat and identify other compats * spotlessApply (#2310) Co-authored-by: GitHub GTNH Actions <> * more guard clauses * reordering condition * removing dead code * removing optional block * deprecating mIC2Classic * spotless apply * deprecate modloaded variables * spotlessApply --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
2023-10-03Adds proper client/server sync for metrics cover, improves oil drill metrics ↵querns
output (#2319)
2023-09-30add tooltipis (#2318)Pxx500
2023-09-27allow rotation (#2313)GDCloud
2023-09-27fix discount (#2311)GDCloud
2023-09-27Fix existing ME hatches are set infinite cache to false (#2312)miozune
2023-09-23Update buildscript (#2305)boubou19
* update buildscript * yeet wildcard imports
2023-09-23ME hatch`s additional connection mode and small fixes (#2291)lordIcocain
* ME hatch`s improvements (?) * ForgeDirection.UNKNOWN not allowed Better description No check before getBoolean * Add description in tooltip Chat message using localization Stocking bus data stick will copy/paste connection mode * Chinese localization * Another method localization * code style
2023-09-23Deprecate GT_MetaTileEntity_MultiBlockBase#isValidMetaTileEntity (#2267)miozune
* Deprecate GT_MetaTileEntity_MultiBlockBase#isValidMetaTileEntity * Explicit brackets --------- Co-authored-by: Martin Robertz <dream-master@gmx.net>
2023-09-22Cleanup noXXXYYY methods round 2 (#2302)miozune
2023-09-22disable large turbine rotation or flip (#2290)Glease
also made the rotation and flip marker to not show up when the multi doesn't support rotating or flipping
2023-09-22obliterate RA1 (#2206)boubou19
* obliterate RA1 (1/2) * fix wrong recipe map * guard clauses * null check * spotless apply * redo null check properly * update BS --------- Co-authored-by: chochem <40274384+chochem@users.noreply.github.com>
2023-09-22Cleanup GT_MetaTileEntity_BasicMachine (#2268)miozune
* Remove unused machines * Add some Javadoc * Remove some unused constructors * Use ResourceLocation and SpecialEffects for newMetaEntity * Remove some non-ModularUI code * Remove mGUIParameterA and mGUIParameterB * Remove mGUIName and mNEIName * Use nonnull string * updateBuildScript
2023-09-15Add HoloInventory compat (#2292)miozune
2023-09-13Adds Metrics Transmitter Cover and Advanced GT Sensor Card for Information ↵querns
Panels (#2289) * Adds several UI elements to multiblock drills * Adds metrics transmitter cover and associated sensor card * Fixes item icons and item name * Adds tooltips for adv. sensor card and metrics panel, fixes card/overlay icons, adds recipe for metrics cover * Refactor cover tab sync to send much smaller ISerializable payloads * Remove unused variable * Additional master merge cleanup * Adds interface for custom metrics export, adds oil drill support * Adds support for metrics covers retaining attached machine name for tooltip, metrics * * Adds discrete coordinates to Metrics Cover data * Adds machine to advanced sensor card tooltip * Adds cycle time and minimum energy hatch tier to multiblock ore drill tooltips * Moves many tooltip strings to i10n * Remove old GT_DisabledWhileActiveButton.java file that crept in during a messy merge * Spotless * Improve oil and ore drill metrics, more i18n * Addresses PR review concerns, adds more situations for self-destructing sensor cards * Remediates further PR concerns
2023-09-13Make Crafting Input Bus / Hatch compatible with some non-GPL multis (#2266)Jaiden Baker
* Add crafting input bus items to getStoredInputs * Add crafting input hatch fluids to getStoredFluids * Respect internal input isolation * List.of -> Arrays.asList * Skip fluids on non-supporting bus * Fix NPE * Change return type to Optional & add Slave support