aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
AgeCommit message (Collapse)Author
2023-09-09Request drill changes, eliminates recipe info in drill GUI (#2285)querns
2023-09-08Adds status messages, action buttons to UI of multiblock drills (#2270)querns
* Adds several UI elements to multiblock drills * Spotless * Adds formatNumbers calls in places where it'd been missed * Eliminate wildcard import * Add @NotNull annotations to new fields and methods
2023-09-08Display current recipe in GUI (#2252)Harry
* Display current recipe * 2 decimals * fixes * formatNumbers * Fix formatting * update modularui --------- Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>
2023-09-07Make heater upgrade more precies aswell (#2275)Jakub
2023-09-07Makes Fool's Ruby use its proper scientific name (#2280)Alastors
fixes: https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/14443 Fools Ruby, as it is, merely serves to screw with players, literally providing no other value, sure it is a "historic quirk" of the pack, but then again, so are dense plates from ++ amongst other things, so I don't exactly see why we should keep a "historic quirk" for the sake of it.
2023-09-06Adds item and charging info to Locker WAILA panel (#2245)querns
* Adds item and charging info to Locker WAILA panel * Refactor Locker WAILA tip entries to happen more on client side
2023-09-06Remove deprecated Seismic Prospector (#2279)miozune
2023-09-06mini fix (#2204)chochem
2023-09-06Add optional description to input hatch constructors (#2278)Jaiden Baker
2023-09-05Deprecate PA by removing its controller recipe (#2273)BlueWeabo
2023-09-05Proper recipe selection for output overflow in LCR and other multiblocks (#2247)SKProCH
* Implement Stream<FindRecipeResult> findRecipesWithResult for GT_RecipeMap * Change ProcessingLogic.process to actually use new findRecipesWithResult * Change ProcessingLogic.process to start finding something only for OUTPUT_FULL result * Refactor ProcessingLogic.process to make logic more readable * Replace while with for loop, remove NOT_FOUND return in end of findRecipesWithResult * Apply spotless * Make findRecipe use findRecipes, add annotation to GT_Recipe and FindRecipeResult for processRecipe and make method protected, replace wildcard imports * Remake isRecipeWithOutputFullFound * Add @Nonnull to methods * Apply spotless * Remove Stream version of findRecipeWithResult, replace with predicate one. Add GT_Predicated_Recipe_Map class for utilizing this method. Changes some existent recipe maps to inherit from base class. * Remove GT_Predicated_Recipe_Map, add Predicate directly to GT_Recipe_Map#findRecipeWithResult. Add AdvancedRecipeValidatorPredicate and FindRecipeWithAdvancedValidatorResult to allow store validation calculations for further use and proper errors displaying. * Fix InsufficientVoltage errors * Changes according to review comments. Integrate FindRecipeWithAdvancedValidatorResult to FindRecipeResult, rename AdvancedRecipeValidatorPredicate, encapsulate AdvancedRecipeValidatorPredicate fields, fixes some typos, etc * Moves InsufficientVoltage check to GT_ParallelHelper. Removes FindRecipeResult#State#INSUFFICIENT_VOLTAGE * Return an old findRecipeWithResult * Renames things, call old methods for singleblocks * Renames things, makes FindRecipeResult ctor private * Apply spotless * Move RecipeValidator, fix comments typos
2023-09-04Fix cutter recipes not being added (#2271)Jakub
2023-09-02Fix GPL ignoring if the recipe is allowed to be cached (#2262)miozune
2023-09-02Fix renaming recipe check might ignore NBT equality (#2261)miozune
2023-08-30Add hazmat to ThaumicBoots (#2260)Alastors
* Add hazmat to ThaumicBoots does what it says * fixed
2023-08-30Remove duplicate obsidian long rod (#2259)chochem
* disable gt obsidian long rod * cleaner code
2023-08-30Fix pcb factory not applying its roughness multiplier when it doesn't OC (#2258)BlueWeabo
* fix PCB Factory not applying its roughness multiplier when it doesn't do any overclocks * spotless
2023-08-28Use real stack limit (#2256)Jakub
2023-08-28Crafting input hatches QoLs (#2200)Harry
* Fixes + Detect Inventory Slot Changes * support rename + check for updates * add back onChangeListener + fix npe * ICustomNameObject TileEntity * Fix NPEs * Use IInterfaceTerminalSupport * fix * register * dep * spotless * General Crafting Input Hatch QoL fixes (#2212) * feat: refactor naming && include circuit and catalyst in default name * feat: add 4 more slot to solve my ocd * fix: formatting * feat: migrate from 4x8 to 4x9 * spotlessApply (#2213) Co-authored-by: GitHub GTNH Actions <> * QoLs * 9 manual items * spotless * feat: open master GUI when used, without holding a data-stick (#2221) * fix destpos * optimize empty check * Fix error when fluidInventory.size() == 0 If the fluidInventory size is 0, there is no element to get. Add a check for it. * name in waila + fix int overflow * unnecssary super * update deps --------- Co-authored-by: Fox_white <39846845+foxwhite25@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Firenoo <49818773+firenoo@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
2023-08-26fix ulv recipes being broken again when under 1 tick calculation is taken ↵BlueWeabo
(#2254)
2023-08-23Fix Orichalcum and Shadowiron smelting (#2251)chochem
* fix orichalcum and shadowiron smelting * add Alduorite and Chrysotile
2023-08-23Update the conditionals buttons and tooltips on covers to reflect their ↵Guillaume Mercier
actual effects (#2244) * Update redstone buttons and tooltips to better reflect actual use * Spotless Apply * Update GT_Cover_FluidRegulator.java * Update GT_Cover_FluidRegulator.java * Typo fix, Icon Improved and interactive blocking ui - Fixed a typo in the world machine - Fixed double button situation for conveyor belts. - There was never any issue, the testing methodology gave me invalid results. - Conveyor behaviour is in line with all the other covers affected by this PR/Branch. - Updated icon for the machine state to be a miniature machine controller cover. - Made the block/allow input section more interactive in order to better reflect the actual effect of these buttons. - In import mode, it actually blocks the machine from outputting from that side. * typos I can't write to save myself sometimes * Better text alignment - Better text alignment * fix typos I swear I can't write to save myself. --------- Co-authored-by: Martin Robertz <dream-master@gmx.net>
2023-08-19Fix GT_RecipeConstants.Fuel (#2243)Jakub
2023-08-17Fix some output slots allowing insertion (#2230)miozune
2023-08-17Remove fire display from singleblock generator (#2240)miozune
2023-08-17Fix server crash with RecipeFilter (#2231)miozune
* Fix server crash with RecipeFilter * Make client send filtered machines to server * Use mUniqueIdentifier
2023-08-16add ability to remove item data and use it for clay (#2229)chochem
2023-08-16clear stale crafting input bus list (#2233)Glease
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-11Blacklist AE2FC drop and packet, and Chisel stones from Recycler (#2222)miozune
* Fix recycler blacklist being sensitive to NBT * Blacklist AE2FC drop and packet, and Chisel stones * fix class loader issue
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-08-08Add a way to enable or disable the crafting buffer on GPL multiblocks (#2218)BlueWeabo
* add a way to enable or disable the crafting buffer on GPL multiblocks * don't register the hatch either
2023-08-07try to fix AL logging (#2214)chochem
2023-08-06Fix wireless hatch npe log spam (#2208)Harry
2023-08-05Check if it is allowed to put into slot (#2207)Jakub
2023-08-01Minor cleanup for checkProcessing (#2195)miozune
2023-07-30Stop setting the recipe map amperage on OC calc (#2199)BlueWeabo
2023-07-30fix new tooltip layout being missing for the brewery (#2196)boubou19
* add machine type for brewery * spotlessApply (#2197) Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-30Make recipe check less intensive with batch mode (#2198)BlueWeabo
* make recipe check less intensive with batch mode * clean up the else
2023-07-30enable subclass to allow less voiding mode being set (#2191)Glease
* enable subclass to allow less voiding mode being set * fix bug * rename
2023-07-30Fix wireless energy voiding (#2192)Harry
* Fix wireless energy voiding * avoid bigint
2023-07-30fix GT_ParallelHelper adding 0.01% to chanced outputs (#2194)BlueWeabo
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-28Less hostile user interfaces (Buffer/Filter/Input bus) (#2165)Yannick Marcotte-Gourde
* Made Emit Energy button a CycleButtonWidget * Made Emit Redstone button a CycleButtonWidget * Made Invert Redstone button a CycleButtonWidget * Made Stocking Mode button a CycleButtonWidget * Spotless apply * Made Invert Filter button a CycleButtonWidget * public bInvertFilter -> protected invertFilter * Deduplicated filter code * Made Allow NBT button a CycleButtonWidget * Made Ignore NBT button a CycleButtonWidget * public bNBTAllowed -> private allowNbt * public bNBTAllowed -> private ignoreNbt * Grey extended tooltips * Don't hardcode multiline tooltips * Document hidden functionality * Cleaned numeric constants * Fixed string constant declaration * Named constants in filter * Unify filter redstone behavior * Fix cover filter mode being inverted so that the displayed mode is the active one * Less magic numbers * Allow right clicking recipe filter * Display only machine type in recipe filter and cycle through compatible machines * Buffer tooltips show output voltage to clarify their role as passthroughs * Added more info to Emit EU/Redstone buttons * Added Sorting mode button to buffers/filters * Added Sorting mode button and stack limit button to input buses * Don't cycle prefixes when clicking with itemstack * Fixed tooltips to work off of the inventory * Fix RecipeFilter losing filter * Support multiblock machines * Use ModularUi syncers to sync state with client Thanks minecraft7771! * Grey text for recipe filter helper text * AnimatedTooltipHandler -> EnumChatFormatting * Explicited RecipeFilter filter building * Specify color for empty slot tooltip * Don't cache new uses of GT5U.MBTT.MachineType. Also corrected MachineType::description * Removed unused getItemExtraTooltip * Multiple returns in getItemStackMachineRecipeMap
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-07-26Allow using ME output hatches for fusion reactor (#2184)miozune
2023-07-26Texture & Bug fixes for Crafting Input Hatches (#2182)Harry
* crafting input textures * texture v2 * texture v3 * texture * various fixes * lazy pattern update * fix dtpf * fix removing pattern * spotless * fix lag in recipe checks * fix * increase tier so they look pretty
2023-07-26Remove "Ore Byproduct List" NEI in favor of custom diagram mod (#2183)miozune
2023-07-26Reset outputs after outputting them (#2181)Maxim
2023-07-25Return validate recipe result, when leaving the process method (#2179)Maxim