Commit Graph
56 Commits
Author SHA1 Message Date
71ea2eaed0 Feature/sort interfaces alphanum order (#563)
* Add the ability to sort interfaces in the interface terminal by natural order

* add zh_CN.lang localization

* Add static instance of AlphanumComparator

Remove code-specific header comment

* Add library clarification

* change alphanum icon

---------

Co-authored-by: glowredman <[email protected]>
Co-authored-by: MCTBL <[email protected]>
2024-08-31 15:39:12 +02:00
slprimeandslprime a222bd3ce6 Use escaping drop item name algorithm from NEI (#554)
* Use escaping drop item name algorithm from NEI

* Update escapedSearchText method

---------

Co-authored-by: slprime <[email protected]>
2024-08-20 13:11:20 +02:00
初夏同学 72218b010f Restore the useTerminalUseLargeFont() method and add @Deprecated (#482) 2024-03-02 13:55:45 +01:00
slprimeandslprime 8d23ff82cf Add Dynamic Font Size for Terminals (#474)
* Add Dynamic Font Size for Terminals

* replace Enum to TerminalFotnSize

---------

Co-authored-by: slprime <[email protected]>
2024-02-25 19:04:06 +01:00
Jakub cc2e7ab282 Add sorting options to the crafting plan screen (#463)
* a

* Remove pattern optimizer from this branch

* push

* Make buttons nicer

* Revert craftingreport.png

* Update GuiCraftConfirm.java
2024-02-19 19:18:40 +01:00
MCTBL 1bc9029c1b Fix empty chest will cause byte info can't collect. (#430)
* Fix empty chest will cause byte info can't collect

* Change the update frequency from int to double

From 5s default change to 2s
2023-11-24 20:57:30 +01:00
MCTBLandAndrei Antropov 0d294c92d4 Add network bytes information for network status gui (#419)
* Add network bytes infomation for network status gui

* Add network bytes infomation for network status gui

* Update src/main/java/appeng/me/cache/GridStorageCache.java

Co-authored-by: Andrei Antropov <[email protected]>

* swap some of Class.forName to instanceof

* make cache update delay

* make cache update delay

* Change error conditions

* Change delay from 1000t(50s) to 100t(5s)

* Let cache update data at the beginning

* Add a cfg that can change the cache update rate

* Add fluid bytes information

* Add essentia status and change gui form

* Apply the spotlessApply

* Delete useless rows

* Delete useless rows

* Revert "Merge branch 'GTNewHorizons:master' into master"

This reverts commit 01dde621b8, reversing
changes made to d09184e8a3.

* Revert "Revert "Merge branch 'GTNewHorizons:master' into master""

This reverts commit 864bbd494c.

* back roll some commits

* delete incorrect import and depends

delete non compliant  depends

* Change interface's name

* Remove wrong annotations

* Add new AdvancedNetworkTool

only text and texture, wait to implement the actual functions.

* Add the Advanced Network Tool gui

* Add the advanced toolbox for other Gui

* Update Build Script

* Add recipe into AE and fix some issue

* Fix the wrong info when cell in ME chest

* Add external buttons for advanced network status

Actual function still working on it

* merge with main branch

Update Settings.java

* Apply spotless

* Add external Gui for advanced network tool

* Add more info to new Gui

* Apply spotless

* Replace some class to interface

---------

Co-authored-by: Andrei Antropov <[email protected]>
2023-11-17 20:55:12 +01:00
Glease 5da4fae1db add opt-out option to limit crafting cpu spill
this will limit crafting CPU item drop to world to one stack per place. I believe this is a reasonable compromise between item loss and server stability
2023-10-27 20:47:43 +02:00
miozune 107832d4fd Fix wildcard import (#392) 2023-09-24 10:09:03 +02:00
Maxim 977358a179 Added config option for maximum input length of part renaming (#348) 2023-06-27 17:04:06 +02: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
Raven Szewczyk 1d74af6e2c Add a crafting tree view to requests for better insights (#283)
- Sets a configurable limit on the number of simulation steps and the size of the serialized tree to prevent DDOS
 - Culls invisible parts of the tree when rendering, tested to maintain high fps on requests with 200k+ individual steps
 - Displays the machines that are responsible for crafting via interfaces, with an API to override the displayed itemstack (for GT hatches to point to their multiblock when implemented)

More features, such as searching, filtering the tree etc. might come in future PRs.
2023-04-14 23:58:04 +02:00
Raven Szewczyk 385e163974 [ci skip] spotlessApply with the new settings 2023-01-29 09:18:04 +00:00
Raven Szewczyk 406c256832 Crafting calculator v2 (#221)
* Update NEI

* Update buildscript

* Crafting Calculator V2 [WIP]

* Implement refunds

* Add a config option to switch crafting calculators, default to v2

* Initial AE2 glue code

* Fix scheduling as a Future

* The simplest of crafting now works

* Fix crafting cpu picking up the wrong pattern fuzzy matches

* Revert "use as substitute" changes in the old crafting calculator.
2023-01-12 19:25:42 +01:00
Raven Szewczyk a40ee7424f Update buildscript, apply spotless (#175) 2022-09-01 13:27:40 +02:00
slprimeandSerghei Borovetchi 36f9020675 improve interface terminal (#139)
Co-authored-by: Serghei Borovetchi <[email protected]>
2022-05-20 11:32:22 +02:00
repo-alt 4fbd71cbaf Feature/interface term (#130)
* Added config values to turn off backbone cable transfer by quantum bridge and p2p tunnels, to help localizing network rebuild bugs

* Turn off by default p2p and quantum bridges backbone support as too unstable (until it may be fixed)

* Interface terminal additions:
Separated search by the interface name from the recipes input/output filtering
Made "Show only interfaces with free slots" button state persistable client side (closes https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/9849)
2022-04-02 16:18:05 +02:00
repo-alt 3c8fe5d53f Turn off by default p2p and quantum bridges backbone support (#129)
* Added config values to turn off backbone cable transfer by quantum bridge and p2p tunnels, to help localizing network rebuild bugs

* Turn off by default p2p and quantum bridges backbone support as too unstable (until it may be fixed)
2022-03-30 21:36:37 +02:00
repo-alt 48c733418a Added config values to turn off backbone cable transfer by quantum bridge and p2p tunnels, to help localizing network rebuild bugs (#127) 2022-03-26 15:43:56 +01:00
repo-alt cbfe0ed0b1 Added some debugging options: (#125)
- pathfinding debug option
- commands to toggle debug logging
- QNB and pathfinding debug logging
2022-03-14 07:22:35 +01:00
repo-alt 262082b3fc Added debug tick time logging (#112)
To enable add `debug { B:LogTiming=true }` to config
Also set `features.misc.B:DebugLogging=true`
2022-02-23 16:27:49 +01:00
repo_alt a70e315a52 Added configurable delay to level emitters, to avoid frequent cache rebuilds 2022-01-10 12:24:42 +03:00
Johann Bernhardt 56a4235ba4 Migrated to unified build script 2021-12-01 23:38:51 +01:00
repo_alt f8616b83df Change default to the old setting, bump version 2021-11-21 11:57:52 +03:00
SirFell cc7b890926 Make Crafting Status button mode optional. Config options: Button - like rest of interface buttons TILE - old AE2 style in top right
(cherry picked from commit bd73595e4c0762a723fdd03839bf8267ff549ae5)
2021-11-21 11:19:39 +03:00
SirFell 8374a6fc31 Move Crafting Status button to other buttons of terminal UI 2021-11-21 11:19:38 +03:00
repo_alt 21a18b9ff0 Client side config for saving search string did not persist after change via GUI 2021-08-05 00:27:14 +03:00
repo_alt 1fa55f66e0 Added client config to not preserve the search string in terminals
Added tooltip to the search bar, that it may be cleared via right click
2021-06-27 14:09:33 +03:00
repo_alt dfb9a6bc06 Returned p2p default power loss to 5%. (still may change in config if you wish) 2020-12-25 22:38:51 +03:00
repo_alt b1f029c477 GT EU P2P support. Partial credits to Ultramine author. 2020-09-02 14:15:52 +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 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 37ae2131fe Closes #1899, Fixed #1898: Adds an easy way to export interesting information into CSV format
Mostly used for the recipe system, but can also be used for debugging purposes. Debug options needs to be ticked to use the full information gain. Recipes only require the normal localization and the specific name plus metadata.

Shifted the recipes into a recipes folder where the CSV will also reside. This will also elevate the copying of the readme to the user directory since it can reside in the recipes folder.

Fixed a bug where the copier would copy the would also copy empty folders
2015-09-26 23:15:25 +02: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 0387d30d1c Reduce scope of variables 2015-09-26 20:07:51 +02:00
thatsIch 4b3d7c7d03 Replace with array initializer
this can be done through http://docs.oracle.com/javase/specs/jls/se6/html/arrays.html#10.6
2015-09-25 23:04:36 +02:00
thatsIch 0076f2ea51 Closes #1452: Implements auto-generation of custom recipes 2015-06-01 17:37:25 +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 071ae6d680 Fixes #1264: Does not crash on missing RF API 2015-04-13 22:15:39 +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 9986ffc458 Fixes #675 No disabled feature should log spam or crash anymore.
Deprecates the old usage of the AEItemDefinitions via the direct method access of

* blocks()
* parts()
* items()
* materials()

and thus use the new re-direct via definitions().

All definitions are now initialized, no matter what. But SubItems, Items and Blocks are not registered, if by chance are disabled.
2015-03-28 16:21:37 +01:00
thatsIch 6baf952904 Fixes #976 Now uses GitHub to retrieve most current version
Reworked whole Version Checker with an extensible interface to add any other service later on easier.
The version checker now has its own config file, to collect the different options and extract them from the main config file.
In that you can specify how fine the versions should be checked.
2015-03-17 07:18:49 +01:00
thatsIch 7dedd4700f Fixes #1024 Added zinc to the grindstone, which is part of Flaxbeards Steam Power (FSP)
Added zinc to the array of checked ore dictionary names, so if any mod decides to add Zinc in the future or uses it via the OreDictionary, it will be automatically added to the grindstone.

The commit also contains some scoping and code cleanup of the underlaying calls
2015-03-15 09:02:23 +01:00
yueh 6476a519bb Added an option to disable the colored crafting status 2015-02-27 13:43:08 +01:00
thatsIch 52c512635d Renamed constants 2015-01-01 22:13:10 +01:00
thatsIch 8179259afa Replaced C-style array instantiation with Java-Style 2015-01-01 21:15:03 +01:00
yueh f471513bd0 Changed access to use this qualifier 2014-12-29 15:13:47 +01:00
thatsIch 2243c5a188 Refactoring
Type-safety

Minor performance improvements
2014-12-02 22:55:39 +01:00