Commit Graph
91 Commits
Author SHA1 Message Date
Caedis ff93dfa471 Extract out the distance methods to a static util class (#137) 2025-05-25 17:46:13 +00:00
Caedisandah-OOG-ah fe83032a2d Add Spatial Hash Grid Data Structure (#135)
Co-authored-by: ah-OOG-ah <[email protected]>
2025-05-25 15:49:54 +00:00
ah-OOG-ah af04614d26 Add convenience method to ObjectPooler (#130) 2025-05-12 10:29:12 -05:00
Raven Szewczyk 92afa3a1e0 Add 32-bit and 64-bit FNV-1a hash function utilities (#128) 2025-04-26 18:01:43 +01:00
6aa98f9891 Add functionality to fake blockId for shaders (#114)
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: RecursivePineapple <[email protected]>
2025-04-21 19:34:32 +02:00
楓 631fe5d878 Backport callFromMainThread() and addScheduledTask() (#126) 2025-04-06 20:45:55 +02:00
Darren Eberly cbc77c890f New mixin infrastructure (#127) 2025-04-02 13:57:28 +02:00
楓 e64b7b0ab5 Added offset(int, int, int) and copy() for BlockPos (#125) 2025-03-27 13:58:39 -05:00
楓 2d24790c3e Make BlockPos modifications return BlockPos instead of IBlockPos (#124) 2025-03-20 11:44:54 +01:00
Raven Szewczyk 0e6c9590ea Add VAO utilities for easier core profile compatibility (#123) 2025-03-14 22:06:22 +00:00
Jason Mitchell 1181fcedde Updates for IStateStack (#120) 2025-03-11 15:19:26 -05:00
LyftandMaya 1c66f22a4b Move LoreHolder registration to a later init stage (#118)
Co-authored-by: Maya <[email protected]>
2025-03-05 15:47:22 +00:00
LyftandMaya ec37b0068e Notify client of servers view distance (#116)
Co-authored-by: Maya <[email protected]>
2025-03-05 15:43:44 +00:00
Mary ef32d751fd Add mixin to register LivingEquipmentChangeEvent (#117) 2025-03-05 01:29:26 -06:00
miozuneandRaven Szewczyk c70e7b9121 Introduce Capability system (#112)
Co-authored-by: Raven Szewczyk <[email protected]>
2025-02-16 14:03:02 +09:00
ah-OOG-ahandMaya 192b7c86ad Update the constant pool parser for Java 25 (#110)
Co-authored-by: Maya <[email protected]>
2025-02-04 23:24:33 -06:00
glowredman 5628efe9ab Add NEI Version Check (#109) 2025-02-04 23:18:19 -06:00
Maya 1e5903b6a1 Amend previous commit, don't set keyCode to -1 (#108) 2025-01-27 20:06:27 -06:00
Maya 1c4c92e5f0 Fix MC keybinding-backed synced keybind listeners (#107) 2025-01-27 19:30:41 -06:00
Raven Szewczyk 39d1bed635 Backport LWJGL3 memory utilities to enable more efficient ByteBuffer usage (#105) 2025-01-26 18:38:48 +00:00
Maya 656c98d84d Synced Keybinds API (#104) 2025-01-25 09:31:38 -06:00
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