Commit Graph
45 Commits
Author SHA1 Message Date
RecursivePineapple 12d9b0d205 Avoid network scans in getAvailableItems (#1473) 2026-09-20 08:07:06 +00:00
Algent bce08da825 Avoid redundant stack copies in NetworkMonitor (#1594) 2026-09-09 07:37:09 +02:00
slprime bd99a01fc1 Feature: Items Flow (#1376) 2026-07-04 16:58:14 +02:00
6142e8417a Reshuffle for AE2 (#1072)
Co-authored-by: lc-1337 <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: lc-1337 <[email protected]>
Co-authored-by: Kogepan229 <[email protected]>
Co-authored-by: Kogepan229 <[email protected]>
2026-04-19 19:32:32 +02:00
Kogepan229andMartin Robertz 29eb7a257b Stack Type API (#958)
Co-authored-by: Martin Robertz <[email protected]>
2026-02-07 19:44:20 +01:00
lc-1337andMartin Robertz 464b9e6f47 Feature: Pattern Repeater (#1000)
Co-authored-by: Martin Robertz <[email protected]>
2026-01-08 20:05:06 +00:00
lc-1337andMartin Robertz 0b03886f6f implement storage interceptor & fix locking card (#993)
Co-authored-by: Martin Robertz <[email protected]>
2026-01-01 16:58:14 +01:00
bd11e11741 Universal GUI (#872)
Co-authored-by: Kogepan229 <[email protected]>
Co-authored-by: Kogepan229 <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
2025-12-11 16:09:06 +01:00
hiroscho 5fa11aea1f Use priority to determine extract order of items in IO Port (#889) 2025-11-07 20:27:06 +01:00
hiroscho c464cc7d50 Fix AutoFiller/SuperStocking/etc lags (#890) 2025-10-20 21:54:36 +02:00
hiroschoandMartin Robertz 6a4ee8c6b0 Fix/inconsistent network read order (#867)
Co-authored-by: Martin Robertz <[email protected]>
2025-10-05 15:17:31 +02:00
Blackcloud010 c9636bc4a4 Search all entire network (including subnets) to find item locations (#815) 2025-08-09 07:59:12 +00:00
0cc278c736 Fix/same network multiple extract only storage buses (#612)
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: MCTBL <[email protected]>
Co-authored-by: Maya <[email protected]>
2025-01-13 00:28:51 -06:00
DemiuandMartin Robertz 0648d1611b Don't use global state for inventory iteration number (#536)
* Don't use global iteration # in NetworkInventoryHandler

Add a helper class IterationCounter for getting non-conflicting
iteration ids

* Align to upstream master

---------

Co-authored-by: Martin Robertz <[email protected]>
2024-07-30 23:29:06 +07:00
rjnasers 8ffe9006fe Applying PR changes and cleaning up some stuff I left in 2023-11-10 14:00:22 +01:00
rjnasers d7ddbca89c Working with ME cells and ME drives 2023-11-10 14:00:22 +01:00
miozune 107832d4fd Fix wildcard import (#392) 2023-09-24 10:09:03 +02:00
Raven Szewczyk e6ca9e36ef Lazily fill out the ItemList for network delta updates (#363)
* Lazily fill out the ItemList for network delta updates

* Implement a new api for looking up a single stored item to optimize network monitor updates

* Update buildscript

* Add Nonnull annotation to the argument
2023-08-03 18:08:21 +01:00
Raven Szewczyk 19676072b8 Enable generics injection & Jabel & code cleanup (#307)
* Enable Jabel and generic injection

* Use RoundingMode enum values

* Use enhanced for loops

* Use diamond operator where appropriate

* Deprecate ChainedIterator

* spotless

* Collapse identical catch blocks

* Use try with resources

* Use List.sort where possible

* Anonymous type->lambda

* Loop -> removeIf

* Simplifiable map operations

* Use enhanced instanceof

* Use enhanced switch

* Use bulk operations

* Use zero-sized arrays in toArray

* Add early exits

* Remove redundant addAll

* Fix missing reflection generic types

* More missed language migration aids

* Redundant type arguments

* Redundant type casts

* Fix compilation errors

* Use Arrays.fill

* Fix some missing generic types
2023-05-02 07:55:33 +02:00
Martin Robertz f803769490 Dep (#302)
* update dep files

* update bs

* sa
2023-04-27 21:35:27 +02:00
Raven Szewczyk 385e163974 [ci skip] spotlessApply with the new settings 2023-01-29 09:18:04 +00:00
Raven Szewczyk a40ee7424f Update buildscript, apply spotless (#175) 2022-09-01 13:27:40 +02:00
Raven Szewczyk 08d0ef617f Fix potential missed updates in the level emitter. (#173)
* Fix potential missed updates in the level emitter.

This makes the emitter tickable, but sleeping most of the time so the performance impact should be minimal.
If an update is ignored due to the configured delay, ticking is scheduled to make sure that the update happens if no further network updates happen until the next delay period.

* Attempt #2: Delay the first tick of the level emitter on load

* Revert "NetworkMonitor optimization - do not rebuild cache more than once per tick"

This reverts commit 09b253109c.

* spaces->tabs to match existing code
2022-09-01 12:58:42 +02:00
repo_alt 09b253109c NetworkMonitor optimization - do not rebuild cache more than once per tick 2022-01-11 18:44:19 +03:00
xsun 53d3eafdbf clean up completely.(Although I think Intellij IDEA did a lot of useless thing) 2017-04-12 22:10:28 +08:00
yueh 38e7e579fa Fixes #2043: Storage buses updates should happen in the correct order.
This is loosely based on #2032 and should prevent any duplicated event,
but still does a refresh the whole cache due to potentially issues with
some inventories.

It also ensures that storage buses will not announce a CellArrayUpdate
before they are fully initialized, thus no longer causing them to return
null during an update.

Fixes #2403
2016-01-03 13:23:51 +01:00
yueh 1862ab3562 Revert "Changed NetworkMonitor to update its cache." 2015-12-11 22:26:21 +01:00
yueh 0696662254 Changed NetworkMonitor to update its cache.
No longer invalidates and refresh it with every single change.
This should now also ensure that updates are send exactly once per network
instead of multiple times scaling up with the amount of chained networks.
2015-12-10 16:11:30 +01:00
yueh 500fc47490 Reduces visibility of internal fields/methods
Reduces the visibility of all fields to private and create setters/getters
when necessary. Exceptions are fields with GuiSync as these need to be
public.

Reduces the visibility of internal methods to private/protected/default when possible.
2015-10-30 18:52:20 +01:00
thatsIch 410d2f1e0d final variables and parameters
seeing some methods it does actually help to enforce the parameters
2015-09-26 21:08:18 +02:00
thatsIch f193c2adc4 Replaces all method parameter regarding their naming conventions 2015-05-08 23:25:19 +02:00
thatsIch 64ed05a1b4 Puts everywhere brackets 2015-04-29 18:38:24 +02:00
thatsIch 3783ae8619 Improved exceptions
Many exceptions got an improvement due to changed class or description or details it is providing.
Is not complete, needs to be done in patches in the regions, where it is needed, since some are just
swallowed.

Removed total usage of pure RuntimeExceptions to 0.
2015-04-21 17:43:24 +02:00
yueh eaf57bedf6 Modifier are now using a consistent order based on the java conventions 2015-04-06 00:35:42 +02:00
thatsIch d34c988c88 Basic reformat, hit once, hope never again 2015-04-03 15:07:13 +02:00
thatsIch dff48c07c9 finalized 2015-03-26 11:14:34 +01:00
thatsIch 234d97b8ce Security issues: public static collections 2015-03-26 11:13:24 +01:00
yueh b18addbf37 remove trailing whitespaces 2015-02-03 12:04:13 +01:00
thatsIch 52c512635d Renamed constants 2015-01-01 22:13:10 +01:00
yueh f471513bd0 Changed access to use this qualifier 2014-12-29 15:13:47 +01:00
thatsIch 7505f9b66a Added copyright to all java files 2014-11-14 12:03:00 +01:00
thatsIch 54f479e827 Removed some imports 2014-10-09 21:17:48 +02:00
thatsIch 060255e9c7 Reduce visibility of fields
Implement against interfaces
Enforce immutability instead resetting it hard via new instantiation.
2014-10-05 15:38:56 +02:00
thatsIch 76b147fd5b Improved readability of variables
Hopefully improved semantics of variables

Fixed typos

Added hyphenations
2014-09-28 12:21:34 +02:00
AlgorithmX2 386d18a059 Relocate Source to proper directory. 2014-09-23 19:26:27 -05:00