aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers
AgeCommit message (Collapse)Author
2023-01-24Fix array ClassCastExceptions (#1681)Raven Szewczyk
* Fix array classcastexceptions * Remove extra parens
2023-01-20MTE Inventory updates (#1496)Jason Mitchell
* MTE Inventory updates * Separate Input/Output inventory * Use a LinkedHashMap to ensure inventory orders are deterministic * Input/Output work on either Input/Output inventories * MTE Inventory * Add GT_Packet_MultiTileEntity * More dyanmic packet with packetFeatures * Add IMTE_HasModes for MultiBlockPart * Help with MTE Inventory (#1613) * convert inventory to use ItemStackHandler * Update MUI * inventories * move Iteminventory to its own method Co-authored-by: miozune <miozune@gmail.com> * Update MUI * Update MUI * Add IMultiBlockPart * Mte fluid inventory (#1639) * first work on fluid inventory * make gui work with numbers not dividable by 4 * use math.min * add outputfluids saving * actually working * Update MUI Co-authored-by: miozune <miozune@gmail.com> * Ticking Covers! * Parts now register covers with the controller * Controllers now tick covers on parts * Break cover ticking out into `tickCoverAtSide` Fix some inventory methods on MultiBlockController * Filter on tickable covers * Improve GUIs for MTEs (#1650) * working controller GUI * locked inventory selection work * input and output locking of inventories Co-authored-by: miozune <miozune@gmail.com> * spotless * CoverInfo refactor (#1654) * Add `CoverInfo` and deprecate the old fields to hold cover information * Disable MTE registration * Fix NPE - Return EMPTY_INFO for SIDE_UNKNOWN Temporarily add back old NBT saving in case of a revert so covers aren't lost. * Actually save the old NBT data, instead of empty Co-authored-by: BlueWeabo <76872108+BlueWeabo@users.noreply.github.com> Co-authored-by: miozune <miozune@gmail.com>
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-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-11-25Rewrite GUIs with ModularUI (#1381)miozune
* 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 * Change signature of addUIWidgets * FluidFilter cover, FluidDisplaySlotWidget, BasicTank, BasicGenerator, Output Hatch, MicrowaveEnergyTransmitter, Teleporter, DigitalChest, DigitalTank * Add title tab * Move package: modularui -> modularui/widget * Programmed circuit + IConfigurationCircuitSupport * clean * 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 * Display items and fluids that exceed usual count * blah * use +=, why didn't I do this * 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 * Minor changes to NEI * 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 * 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 default implementation for IHasWorldObjectAndCoords#openGUI * Make openGTTileEntityUI accept MultiTE & cleanup Co-authored-by: Jason Mitchell <mitchej@gmail.com>
2022-10-26Fixed annoying cover message bug (#1490)johnch18
* Fixed annoying cover message bug * Spotless
2022-10-13Fix Fluid Detector RS signal (#1464)Charles Gagnon
2022-10-12No more duplicated key II (#1457)iouter
* no more duplicated key II * spotlessApply
2022-10-05Allow Redstone, Energy, and item to pass through Fluid Filter Cover (#1437)miozune
2022-10-01Merge branch 'advanced_redstone_covers'Martin Robertz
# Conflicts: # src/main/java/gregtech/api/util/GT_Utility.java
2022-10-01spotlessMartin Robertz
2022-10-01no-more-duplicate-key (#1424)iouter
2022-09-23Move `hashCoverCoords` to WirelessBaseMatej Dipčár
2022-09-23Add new icon for the analog modeMatej Dipčár
2022-09-23Rename `In`, `Out` to `Internal`, `External`Matej Dipčár
2022-09-23Add Analog Mode to the receiverMatej Dipčár
2022-09-23Add Maintenance Detector CoverMatej Dipčár
2022-09-23Add Fake Item Slot to GUIMatej Dipčár
2022-09-23Implement Wireless Item DetectorMatej Dipčár
2022-09-23Reformat intentMatej Dipčár
2022-09-23Reset signal, only when frequency or UUID changedMatej Dipčár
2022-09-23Fix calculating super chest contentMatej Dipčár
2022-09-23Add new hook `preDataChanged`Matej Dipčár
2022-09-23Abstract `convertRatioToRedstone` properlyMatej Dipčár
2022-09-23Abstract `computeSignalBasedOnItems`Matej Dipčár
2022-09-23Make `GT_GuiShortTextBox` able to map values to different display stringsMatej Dipčár
2022-09-23Make `parseTextBox` and `GT_GuiShortTextBox` more abstractMatej Dipčár
2022-09-23Swap min, maxMatej Dipčár
2022-09-23Add more abstract `genericMouseWheel`Matej Dipčár
2022-09-23Implement logic in Wireless Fluid DetectorMatej Dipčár
2022-09-23Add Wireless Fluid Detector CoverMatej Dipčár
2022-09-23Make screwdriver on transmitter swap between inverted and normal modeMatej Dipčár
2022-09-23Make private text configurableMatej Dipčár
2022-09-23Make GUI more settled and configurableMatej Dipčár
2022-09-23Move getDescription to parent classMatej Dipčár
2022-09-23Rearrange Transmitter GUIMatej Dipčár
2022-09-23Make TransmitterBase more abstractMatej Dipčár
2022-09-23Remove now unnecessary resetSignalAtMatej Dipčár
2022-09-23Move advanced redstone API to Wireless BaseMatej Dipčár
2022-09-23Unregister signal also when TE is destroyedMatej Dipčár
2022-09-23Make also WirelessData abstractMatej Dipčár
2022-09-23Make abstract wireless baseMatej Dipčár
2022-09-23Remove unnecessary reset on receiver removalMatej Dipčár
2022-09-23Call reset on server instead of client, and only when something actually changedMatej Dipčár
2022-09-23Implement all advanced receiver modesMatej Dipčár
2022-09-23Fix GUI button idsMatej Dipčár
2022-09-23Fix map not updating when transmitter TE gets destroyedMatej Dipčár
The map is reset when player opens cover GUI
2022-09-23Add handling of multiple sourcesMatej Dipčár
2022-09-23Add Advanced Wireless Redstone CoversMatej Dipčár
2022-09-01impl(covers): functional covers uses machine casing (#1317)Léa Gris
* impl(covers): functional covers uses machine casing - Functional covers now will let see the casing, when placed on machines. - When placed on pipes or frames, they continue to use their own tiered casing as they used to. * impr(cover): restore backward compat interface to cover registgration Registering covers with the old interface works again. Legacy cover registration just produce covers that renders the old way without transparency over machine casing. Removed the useless GT_Cover_Cased class and added the feature to the GT_CoverBehavior class, maintaining the old constructor alongside the new constructor with an overlay texture. * impr(covers): deprecate old constructors Delete totally redundant and unused EnergyOnly cover Keeps other unused covers as TODO reimplementation tasks * impr(covers): fludStorageMonitor overlay - Re-add FluidStorageMonitor fluid-texture overlay - Allow light-emitting fluids to render as glow texture. * impr(covers): Expand foreground texture support to GT_Cover_FacadeBase * spotlessapply