Commit Graph
70 Commits
Author SHA1 Message Date
Lyft 6af1528b03 Register config sync event bus in init (#103) 2025-01-19 18:40:46 +00:00
Lyft 2752dc6b1a Easily sync config values between server & client (#102) 2025-01-19 12:06:17 -06:00
glowredman 3fb62c5292 Automatic LoreHolder Discovery (#101) 2025-01-13 22:42:09 -06:00
RecursivePineapple 3580876f40 Add block/meta and item/meta pair classes (#98) 2025-01-09 14:58:06 +01:00
glowredman bdf4234b84 Add RenderTooltipEvent (#81) 2024-12-20 14:24:03 +01:00
Lyft 632c5a1419 Allow non-public subscribed methods in @EventBusSubscriber classes (#97) 2024-12-19 20:34:53 +01:00
Raven Szewczyk a97a445607 Add an interface for meta- and nbt-aware music disks to fix modded disk support in electric jukeboxes (#96) 2024-12-09 18:54:34 +00:00
Maya 0c6a16439f Move lore handler from intergalactic to gtnhlib (#92) 2024-11-28 15:23:20 -06:00
ah-OOG-ah e6e2f86005 Disable thread safety checks with FalseTweaks (#88)
Also adds an API to detect if the thread's tesselator is being captured.
2024-11-11 09:41:26 -08:00
Alexdoru b077a12f1e Add texture debug feature (#86)
enabled by using -Dgtnhlib.debugtextures=true
2024-10-27 14:15:48 +01:00
Alexdoru 21e7a5bf5d merge iih + mt hand command in one (#84)
* merge iih + mt hand command in one

* remove the nbt tag, it's included in the mt hand line below

* address review
2024-10-22 09:32:29 +02:00
LyftandMartin Robertz 3d6099bffd auto create config gui if no gui factory is registered (#79)
Co-authored-by: Martin Robertz <[email protected]>
2024-10-21 16:00:45 +00:00
Lyft 4ddb3e81e5 auto remove dead config categories/values from file (#78) 2024-10-21 17:37:56 +02:00
Alexdoru e12a874a96 add util to open files / urls on every OS (#83) 2024-10-18 00:45:00 +02:00
Lyft 28786c5f47 EventBusSubscriber improvements (#82)
* make @EventBusSubscriber able to work for earlier init phases & safe condition method invocation

* add some docs

* no need to sort this anymore
2024-10-12 19:29:59 +02:00
Lyft 2da1d6ff81 Backport @EventBusSubscriber annotation from 1.12.2 (#80)
* backport @EventBusSubscriber annotation from 1.12.2

* Cache events, safe method lookup, replace eventbus reflection with accessor

* ily spotless

* actual completely safe event registration this time with less reflection

* throw exception when encountering an unexpected non-static method

* oops that was too wide a net

* more logging for the transformer
2024-10-10 20:23:20 +02:00
Lyft 3bd8cb4c4b Add jvm flag to dump generated lang keys to file (#77)
* add jvm flag to dump generated lang keys to file

* where did the import go

* drop files in a folder instead
2024-10-03 19:51:18 +02:00
Lyft 96ce85fec0 make config enums ignore case (#76) 2024-10-03 18:11:20 +02:00
Glease ea50d8fa7f account for vanilla fluid blocks (#74) 2024-09-29 19:07:52 +00:00
Lyft 5d611aefe3 Fix a few config issues (#73)
* fix a few lang pattern issues & add jvm flag to print generated keys

* make `@Config.Comment` applicable to classes

* fix
2024-09-14 16:25:54 +02:00
Lyft 460a2811e9 make langkey pattern able to use qualified category names (#72) 2024-09-14 01:02:58 +02:00
Lyft 6a39dbec79 always check for @Config.Ignore before processing field (#71) 2024-09-13 16:05:00 +02:00
Alexdoru ecd7d92f0f use raw byte array for speed in ClassConstantPoolParser (#62) 2024-09-11 16:36:46 +02:00
Lyft e3ac98f8ed fix categories with uppercase letters empty in config gui (#70) 2024-09-11 16:36:07 +02:00
Lyft 5f46d25462 Customizable langkey pattern config annotation (#68)
* customizable langkey pattern config annotation

* make `%field` required

* no need to keep looking for annotation if @RequiresXRestart has already been found

* fix subcategories getting parent category lang key
2024-09-11 16:35:46 +02:00
Alexdoru f7dae0235f add ASMUtil class to dump classes (#63) 2024-09-02 23:47:41 +02:00
Lyft 0ec72e9489 ModDetectedDefault config annotation (#65)
* ModDetectedDefault annotation v2

* better default value parsing and more descriptive exceptions

* A ModDetectedDefaultList would be nice too

* remove test stuff

* remove the mountain of exceptions from parsers

* check coremod first

* return the default value string instead of annotation
2024-09-02 17:00:12 +02:00
Lyft d1714b924d Backport 1.12.2 config subcategory behavior (#58)
* backport 1.12.2 config subcategory behavior

* remove test stuff

* allow for empty parent category

* refactor processConfigInternal & add method to manually save a config

* refactor getConfigElements into one method

* use correct logger

* better logging when a @DefaultEnum has an incorrect value

* stop crashing if an array doesn't have a default value defined

* wrong declaring class

* don't double wrap proxy elements
2024-09-01 20:09:16 +02:00
Lyft 0b01adbae6 don't merge configs in different subfolders (#59) 2024-09-01 09:30:57 +02:00
Alexdoru 071cb88f53 delete duplicate & unused class (#60) 2024-09-01 06:45:16 +02:00
Caedis b56c1e2c37 Merge the same filename configs (#57)
* Merge the same filename configs

* update key
2024-08-25 03:15:57 +02:00
FalsePattern 9d9575f99b Fix transformer exclusions when loading without RFB (#56)
* fix transformer exclusions when loading without RFB
2024-08-22 16:43:54 +00:00
Jason Mitchell 5d4f7119b8 This should fix compat with OF & FT; (#55)
* This should fix compat with OF & FT; no reason to transform the Tessellator itself anyway...

* Shouldn't need this now with the other fix

* remove these checks too
2024-08-22 09:18:47 -07:00
Caedis d73623f8fb Add int and double lists to configs (#52)
* Get int and double lists

* add defaults to comment
2024-08-22 10:23:22 -05:00
ah-OOG-ah 487393a77b Move model loading to GTNHLib (#51)
* Move model loading to NHLib

* spotless
2024-08-21 08:18:38 -07:00
Caedis 48c62819dc Dont CapturingTessalator if OF/FC is loaded (#50)
* Dont CapturingTessalator if OF/FC is loaded

* spotless
2024-08-18 10:24:54 -07:00
miozune 5157c9c6ad Backport BlockPos#getAllInBox (#49)
* Backport BlockPos#getAllInBox

* Rename params and add javadoc

* Mention that range is inclusive
2024-08-13 21:52:04 +09:00
Jason Mitchell 2895735d5f Add the MixinCompatHackTweaker to fix running on java 8 w/o lwjgl3ify/rfbplugin 2024-08-06 17:40:06 -07:00
Jason Mitchell 0104cc0159 Fix Non RFB usage (#45)
* Fix Non RFB usage
* No more strings, add proper transformer exclusions
2024-08-06 09:15:28 -07:00
Jason Mitchell 7d230e375d Move over some useful items from Angelica (#44)
* Move over some useful items from Angelica
* CapturingTessellator
* VBOManager
* JSON Models
* Quads/QuadWriters
* Blockpos and other misc util classes
* Add IModelCustomExt & MixinWavefrontObject
2024-08-04 18:30:09 -04:00
Jason Mitchell b270ebc238 Basic ShaderProgram util class (#43) 2024-07-21 13:40:22 -07:00
Jason Mitchell bddd094748 Add CoordinatePacker
* Currently used in Angelica & GT5u
2024-07-07 16:16:23 -07:00
Jason Mitchell f359d38beb Add ClassConstantPoolParser 2024-06-29 12:25:58 -07:00
Abdiel Kavash c705d87050 Add suffixes 's' and 'i'. (#38) 2024-04-11 21:29:39 +02:00
Raven Szewczyk a0dad2c0e6 Add a dummy RFB plugin to allow classes to be used earlier in the loading process (#37)
* Add a dummy RFB plugin to allow classes to be used earlier in the loading process

* Remove useless buildscript version comment
2024-02-28 21:23:02 +00:00
Raven Szewczyk f6f993980e Add a compare-and-swap reference wrapper and collections (#36)
* Add a compare-and-swap reference wrapper and collections

Useful for situations of very rare mutations and very frequent concurrent reads.

* Add some tests
2024-02-28 20:58:39 +00:00
CaedisGitHub GTNH Actionsgithub-actions[bot]
7be106da73 Remove required parameter to Config annotation (#34)
* dont make them required

* Remove unused saving code

* Spotless apply for branch configFileOverride for #34 (#35)

Co-authored-by: GitHub GTNH Actions <>

* This was actually needed

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-27 09:29:40 +00:00
Caedis f6cfa5c935 Add filename and subdirectory overrides to Config class annotation (#33)
* Add filename and subdirectory overrides

* spotless

* Fix nit

* Nother nit
2024-02-26 21:38:33 +00:00
Abdiel Kavash 389101eb7b Added the ’ character -- thousands separator in Swiss locales -- to expression parsing. (#32) 2024-02-20 07:38:34 +01:00
Abdiel Kavash f54bc181cb Added MathExpressionParser. (#31)
* Added MathExpressionParser.

* Suppress warning about unused return values to make IntelliJ cry less.
2024-02-19 10:03:52 +09:00