Commit Graph

800 Commits

Author SHA1 Message Date
James Seibel 30aba99c27 Add WorldGeneratorInjector and start unit tests 2022-07-26 22:09:49 -05:00
James Seibel a49512f750 Add generic typing to OverrideInjector 2022-07-26 21:24:52 -05:00
TomTheFurry 89e2d10f24 Fixed 1 wrong logging 2022-07-26 23:36:49 +08:00
TomTheFurry 2abb117d2e remove ghost imports.... 2022-07-26 23:31:28 +08:00
TomTheFurry c110e268b8 Fixed IO bugs 2022-07-26 23:14:28 +08:00
TomTheFurry 78c6ae3b90 Hey Fixed more maths! 2022-07-26 22:20:26 +08:00
TomTheFurry 50810c7406 Fixed realllly wrong maths 2022-07-26 21:54:32 +08:00
TomTheFurry e903ec53f5 Continue fixing bugs... Lots of bugs. 2022-07-26 20:17:26 +08:00
TomTheFurry a4546c63e3 Fix bunches of bugs. Quad tree ticks! Gen call is fired! Chunk gen works! Next to fix: File updates 2022-07-26 17:06:50 +08:00
TomTheFurry 50c5d044f1 Trying and failing to find a bug. Gonna call it a night. 2022-07-26 01:04:01 +08:00
TomTheFurry 5947716a6a Resolving one by one many bugs lying around 2022-07-26 00:13:00 +08:00
coolGi 85fec37bed Removed some jank code 2022-07-25 23:11:01 +09:30
TomTheFurry 49769d0aac Fix stuff so fabric works and no crash. Sadly nothing renders though... 2022-07-25 21:23:36 +08:00
James Seibel d7b73f378e Fix ApiEnum test failures 2022-07-25 07:46:25 -05:00
TomTheFurry ff2763df9e Rework forge to new a1.7 structure. Minecraft runs and it builds. But crash on loading into world due to... weirdness 2022-07-25 19:44:11 +08:00
TomTheFurry 973be40324 Fix and port batch generator to new Generator API. Now if we just fix up forge, and there's no bugs (impossible), then there's enough implemented to finally have something shown! Yay! 2022-07-25 13:38:33 +08:00
TomTheFurry 5f486b6258 Work on world generator integration to a1.7 rework 2022-07-23 16:40:19 +08:00
James Seibel cdbee5e239 Add a missing test case and fix a typing issue with dependencyInjector 2022-07-21 21:25:17 -05:00
cola98765 b95f095721 why did I root the alpha? 2022-07-21 18:35:27 +02:00
TomTheFurry 5b1568e9a6 Fixing stuff towards successful builds. Now stuck on thinking how the world gen stuff should return and apply the gen chunk to data though... 2022-07-21 17:40:27 +08:00
James Seibel 109f2ea7a4 Finish OverrideInjector and add unit tests 2022-07-20 07:11:46 -05:00
James Seibel 0e73aa1820 More test refactoring 2022-07-20 07:00:11 -05:00
James Seibel c4a9a72118 More refactoring 2022-07-19 20:22:11 -05:00
James Seibel d5f7818252 Refactor/Clean Dependency tests before adding Override tests 2022-07-19 19:57:03 -05:00
James Seibel 3f89c485e1 Add OverrideInjector 2022-07-19 19:46:17 -05:00
James Seibel c11f63f606 DependencyInjector children fixes 2022-07-19 19:40:06 -05:00
coolGi 1c2a4a43d0 Merge remote-tracking branch 'origin/main' 2022-07-18 15:16:30 +09:30
coolGi adc51bab9a Added runnable and performance impact to the config 2022-07-18 15:16:22 +09:30
James Seibel dc466e61d1 Add DhApi Client/Server Save events (and fix other events) 2022-07-17 20:48:28 -05:00
James Seibel 02157d52f6 Add DhApi level load/unload objects 2022-07-17 20:40:31 -05:00
James Seibel 299a7c67f0 Rename DhApi event Parameter objects 2022-07-17 20:33:50 -05:00
James Seibel 484c95e26a Make event parameter objects internal classes 2022-07-17 20:29:29 -05:00
James Seibel 45f7ca2954 Add DhApi Before/After Init Event objects 2022-07-17 20:15:07 -05:00
James Seibel a7c3f9ec20 Add DhApi Before/After Render Event objects 2022-07-17 20:09:14 -05:00
James Seibel c7e4781a95 Add unit tests for the DependencyInjectors 2022-07-16 22:40:14 -05:00
James Seibel 9a8ed301cb Rename SingletonHandler -> SingletonInjector
This was done with all Dependency Injection objects because there was a name conflict with DhApi event handlers. (This new name is also more specific and makes sense for dependency injection).
2022-07-16 22:09:22 -05:00
James Seibel 8c0767523d Add DhApiEventHandler and hook up EventRegister
add supporting event interface objects
refactor api.implementaion.interfaces
2022-07-16 22:06:29 -05:00
James Seibel 88915ca92f Improve DependencyHandler for DhApiEventHandler support
Specifically dependencyHandler can now optionally store multiple implementations for each dependency interface.
2022-07-16 22:02:37 -05:00
James Seibel 207eded4b4 Improve anotherQuestion docker documentation 2022-07-16 20:48:14 -05:00
James Seibel c01fc2ed86 Remove DhApi worldGenerator unregister methods
Also fix capitalization for the register methods
2022-07-15 22:07:32 -05:00
James Seibel 3d19fec723 Revamp DependencyHandler
The dependency handlers are now singletons instead of static, this prevents almost all duplicate code as each handler can now extend the parent DependencyHandler.

Handlers no longer have to finish binding before being used, and they no longer have to call runDelayedSetup() before being used either. However dependencies that have circular references still need the runDelayedSetup() method to be called at somepoint; there will just be a warning if they are get() before that setup was done.
2022-07-15 21:58:48 -05:00
James Seibel 6b5c14cdd9 fix a typo 2022-07-15 07:17:12 -05:00
James Seibel 1bd3ce8809 Major API Package refactor 2022-07-14 22:15:07 -05:00
James Seibel e6937d010f Start setting up the DhApi world generator overriding 2022-07-14 21:54:06 -05:00
James Seibel 51de4da845 Minor cosmetic/warning changes/fixes 2022-07-14 21:44:46 -05:00
James Seibel b1c6ff9588 Improve DhApi event handling names and organization 2022-07-14 07:48:46 -05:00
James Seibel 889e983cc5 Continue setting up the DhApi Rendering events 2022-07-13 22:06:52 -05:00
James Seibel 4f6433ee0f Improve IDhApi Render events 2022-07-13 21:24:11 -05:00
James Seibel e04f1d9dd5 Start adding a event API system 2022-07-13 07:54:34 -05:00
James Seibel 9673150fa1 Rename and add DhApi to a few classes 2022-07-13 07:30:22 -05:00