aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
AgeCommit message (Collapse)Author
2023-12-26Change to the overclock logic of Fusion Reactor (#2422)HoleFish
* adjust overclock * static
2023-12-25Restore the ability to use multiple ME hatches for one machine (#2426)miozune
2023-12-24Rework the UI of singleblock pumps. (#2420)Abdiel Kavash
Change singleblock pumps to be machines, not tanks. Rework the UI of the pump.
2023-12-23Allow a soldering iron to use soldering material from an IC2 Tool Box. (#2421)Abdiel Kavash
* Allow a soldering iron to use soldering material from an IC2 Tool Box. * Add error message about insufficient soldering material.
2023-12-19Fix basic machine OC not using amperage (#2410)miozune
2023-12-19Fix logic with old OC calculation code (#2408)miozune
2023-12-18more detailed progress info in waila tooltip for basic machines (#2401)iamblackornot
* - more detailed progress info in waila tooltip for basic machines * - changed func param names - updated buildscript --------- Co-authored-by: iamblackornot <nkzshinnnik@gmail.com>
2023-12-18Clarify whether item or fluid output is full (#2403)miozune
2023-12-17Remove IC2 iridium exploit (#2402)chochem
remove iridium exploit
2023-12-09Fix input hatches for large turbine & boiler not accepting fluids (#2400)miozune
* Fix input hatches for large turbine & boiler not accepting fluids * Also adjust plasma turbine
2023-12-07change Import/Export to Export/Import to match button position (#2397)Martin Robertz
2023-12-07Fix some singleblock not overclocking (#2398)miozune
2023-12-06Fix null problem with recycler (#2396)miozune
2023-12-04Add API to limit number of recipe outputs (#2390)miozune
2023-12-04Fix parallel helper crash with 0 EU/t recipe (#2389)miozune
2023-12-03Refactor RecipeMap (#2345)miozune
* Remove deprecated and unused things * Move recipemap subclasses * Move GT_Recipe_Map to outside and rename to RecipeMap * Move recipemap instances to separated class & remove prepending s * Remove useless GT_Recipe constructors * Always use ModularUI * Rename IGT_RecipeMap -> IRecipeMap * Add RecipeMapBuilder * Remove more deprecated and unused things * Fix RecipeMap type parameters * Use multimap for recipe index * Fix bending recipe error in dev env * Remove mUniqueIdentifier * Update AE2FC * Less edgy texture for NEI recipe background * Add replicator fluid output slot for NEI and machine GUI * Fix fluid fuels not having fuel value in large boilers * Remove GT_RectHandler and NEI_TransferRectHost * Remove RecipeMapHandler * Move NEI energy description from RecipeMapFrontend to Power * Refactor the way to filter fusion recipes * Check restriction for some properties * Remove showVoltageAmperage * Make Power accept GT_Recipe * Fix NPE * Move NEI duration description to Power from Frontend * Directly implement IRecipeProcessingAwareHatch for GT_MetaTileEntity_Hatch_InputBus_ME * Make Power integrated with GT_OverclockCalculator * Rename Power -> OverclockDescriber * Don't modify recipe find logic until postload finishes * Reformat reserved MTE ids * Fix check for too few inputs on recipe addition * Move replicator logic to backend * Stop un-hiding assline recipes * Allow setting custom recipe comparator & implement for fusion * Update AE2FC * Rename getRecipeList and getRecipes -> getRecipeMap * Automatically register recipe catalysts * Cleanup the way to detect recipe collision * Make use of BasicUIProperties for basic machines * Make use of BasicUIProperties for UIHelper * Rename specialHandler -> recipeTransformer * Add way to automatically register handler info * Add recipe category * Add some APIs for addons * Rename blastRecipes -> blastFurnaceRecipes * Remove GT_MetaTileEntity_BasicMachine_GT_Recipe#mSharedTank and #mRequiresFluidForFiltering * Don't require setting duration and EU/t for fuel recipes * Don't require setting EU/t for primitive blast furnace recipes * Revert change to addMultiblockChemicalRecipe * Fix large boiler general desc recipe not being added * Hide duration and EU/t from large boiler * Cleanup recipe stacktrace draw * Extend metadata usage of recipe builder to recipe itself * Implement metadata handling & NEI comparator for PCB factory * Some rename around NEIRecipeInfo * Some toString implementations * Add more APIs for addons & some rename * Infer handler icon from recipe catalyst if one is not set * Also shrink recipe title when OC is not used * Remove rare earth centrifuge recipe * Use metadata for replicator backend * Adjust geothermal generator output slot * Allow having multiple transferrects * Store recipemap reference in backend * Rename vacuumRecipes -> vacuumFreezerRecipes * Add config to tweak visibility of recipe categories * Remove mHideRecyclingRecipes in favor of recipe category config * Fix typo fluidSolidfierRecipes -> fluidSolidifierRecipes * Refactor findRecipe and ProcessingLogic to use Stream * Fix BBF handler icon & remove bronze blast furnace * Add fluent API for findRecipe * Add way to stop adding progressbar * Change arg order for special texture * Avoid overwriting interesting failure with NO_RECIPE * Some changes for FuelBackend * Set space project icon * Remove localization from TT * Remove CNC recipe adder * Move recipe extractor from AE2FC * Minor internal change for ProcessingLogic#applyRecipe * More javadoc on #getAvailableRecipeMaps * Better implementation of #ofSupplier * Move replicator exponent config to GT_Proxy * Remove RC & IC2 macerator handling * Rename StreamUtil -> GT_StreamUtil * Refactor code around RecipeMetadataStorage * Revise #compileRecipe javadoc * Switch extreme diesel recipe loader to downstream recipe map * Optimize #reMap * Rename reload -> reloadNEICache * Minor tweak for drawEnergyInfo * a bit more doc * Adjust recipe catalysts * Add toString implementation for GT_Fluid for debug * Minor revision for OilCrackerBackend * Index replicator recipes by material --------- Co-authored-by: Glease <4586901+Glease@users.noreply.github.com>
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-27Fix recipe check (#2379)HoleFish
* Update GT_Recipe.java * strange spotless * part of miozune's suggestion * whatever. need more tests
2023-11-19Fix input stack size being ignoredmiozune
2023-11-19Fix recipe check once moremiozune
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-14Allow a recipe's displayed NEI item outputs to be changed (#2367)Elisis
* Add GT_Recipe#getRepresentativeOutputs method * Spotless apply for branch nei-output-override for #2367 (#2368) spotlessApply Co-authored-by: GitHub GTNH Actions <> * Javadoc, move method, remove unnecessary import, Object to ItemStack * Actually fix merge * Spotless apply for branch nei-output-override for #2367 (#2369) spotlessApply Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-14Fix recipe check after previous PR (#2364)miozune
* Fix wildcard recipes not working * Fix recipe can be run without non-consumed item second time * Add API for addons to modify input consumption behavior * Fix recipes falsely being sensitive to NBT
2023-11-14Notifiy greg tech tile entities of world unload event (#2366)tth05
2023-11-12update progress to fit a bit better (#2363)bombcar
* update progress to fit a bit better * no need for math(round)
2023-11-12Fix EV+ Powered Repeller RangeTechnicianLP
2023-11-12Add onChunkUnload method to IMetaTileEntity (#2362)tth05
2023-11-12fix lag caused by too much parallel (#2358)HoleFish
* Update GT_Recipe.java add a method to calculate max parallel by inputs * remove incredible loop in parallel calculation * Update GT_Recipe.java overwrite maxParallelCalculatedByInput split isRecipeInputEqual into maxParallelCalculatedByInput and consumeInput * Fix * spotless and fix * spotless * optimize * batch mode optimize * Update notes
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-08Overloaded utility methods with more specific types (#2357)ghostflyby
* Added overloaded utility methods with more specific types * Deprecating old ones
2023-11-06Add separated flags for recipe builder debug (#2352)miozune
* Add separated flags for recipe builder debug * Better way to handle all flag
2023-10-29Add KubaTech to mods enum (#2354)Jakub
* Add KubaTech to mods enum * Sort enum content
2023-10-28don't panic over collisionschochem
2023-10-28Rename the hatches to make it consistent with `MetaTileEntityIDs`Pelotrio
2023-10-28Add non-autopull version of stocking input bus/hatchPelotrio
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-21Upping Tier to 13 (#2343)TheEpicGamer274
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-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-17restore vinteum gem (#2338)chochem
2023-10-16Item pipes now consider the tick their current transfer period started ↵BTone
before resetting their transferred items, resulting in more predictable pipe transfer rates. (#2334)
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-14allow rotation on maintenance hatch (#2331)Glease
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-12average per tick counter for cable voltage and amperage (#2321)iamblackornot
* - a workaround fix to https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/14431 - code clean-up of unused variables related to the issue - portable scanner infodata is cleaned too since some of the data is related to mentioned before "ghost" variables * - PR review changes * "Current Amperage" -> "Amperage" * - updated gradle build script * - sync fork * added AveragePerTickCounter class, which helps getting [current tick] value and [average] value for Amperage and Voltage of energy cable blocks updated cable scanner info to show these values * - lowercase the first letter of new methods to follow the guidelines - added one comment to explain code segment's logic --------- Co-authored-by: iamblackornot <nkzshinnnik@gmail.com>
2023-10-11GT_BaseCrop Modularisation (#2330)Guillaume Mercier
- Add layout.json from idea to gitignore - Modularizes the code for the isBlockBelow check - No functionality changes should appear to the end user