34 Commits
Author SHA1 Message Date
楓 235ea5bcd8 Added a coroutine dispatcher for server thread (#14) 2025-07-19 14:25:57 +08:00
楓 81274ff2d3 Updates (#11) 2025-03-02 10:25:32 -08:00
glowredman 0aa12c21b0 Add annotations to coremod class 2024-02-12 19:47:37 +01:00
Glease 050c50951c add back missing core mod entry 2022-09-10 02:07:15 +08:00
bombcar 945f67b527 typo 2022-02-03 17:32:51 -06:00
bombcar 1d6ff37b1a update build 2022-02-03 17:27:00 -06:00
Telan 623ac33017 exclude all files but manifest in meta-inf; update readme
Otherwise, forge asm will complain about unreadable java 9 classes which are included by shadow jar by kotlin
2021-10-09 17:48:03 +03:00
Telan 2d0801d1d6 bump version 2021-10-08 20:01:50 +03:00
Telan b4b6c2059a set version in mod file manually; fix archive classifier; downgrade to 1.5.30
for some reason replaceIn is not working as expected
at least locally I couldn't build with 1.5.31
2021-10-06 21:22:30 +03:00
Telan 4293eac3e3 switch to coroutines 1.5.1; add myself to authorList 2021-09-27 11:07:32 +03:00
bartimaeusnek cf40f49d6c Port to 1.7.10
+ Backported auto register Interface (untested)
+ rewrote Preloader to run on Kotlin
+ downgraded gradle wrapper
+ downgraded forge to 1614
+ updated kotlin version to 1.3.72
+ updated mcmod.info
2020-05-14 20:55:01 +02:00
Shadowfacts 9809314759 Only attempt to register event handlers for mods that use KotlinAdapter
Closes #41
2018-06-14 19:14:55 -04:00
Shadowfacts 7b885ea4cd Convert indents to tabs 2018-06-11 17:22:36 -04:00
Shadowfacts 7cebe692e7 Only unregister static/register object event handlers unless appropriate handler methods are detected 2018-06-11 17:21:43 -04:00
gegy1000 df437491f1 Fix #38 (#39)
Because the automatic subscriber depends on the mod class loader, we need it to run after that has been initialized. That only happens in the construction event, so we have to search at some later stage.
2018-06-10 19:27:26 -04:00
Shadowfacts ecf20f1a76 Don't crash on failed registration
I think Forge is doing something weird with registration event handlers causing ClassNotFoundExceptions

Closes #37
2018-06-09 17:32:39 -04:00
Shadowfacts c64538e7b0 Remove unnecessary elvis operator 2018-06-09 15:28:51 -04:00
Kitten be61809a7b Unregister class reference from the event bus (#36)
When Forgelin registers the object instance of an `@EventBusSubscriber` annotated object class to the event bus, it does not unregister the static class reference that Forge will have registered before Forgelin parses the annotation candidates. This could potentially cause issues, and breaks expectations/semantics from having the annotation register a class both statically and as an instance. This pull request adds a call to `MinecraftForge.EVENT_BUS#unregister` to remove the Forge-registered class reference before registering the instance reference.
2018-06-09 15:08:40 -04:00
gegy1000 438c604d52 Object EventBusSubscriber registration (#34)
* Object EventBusSubscriber registration

* Register from construction and handle companion objects

* Rename construction event listener

* Syntax changes

* Add test mod
2018-05-21 09:36:15 -04:00
Marvin Rösch 23dfb368e1 Add automatic version replacement in Forgelin.kt (#20)
* Add automatic version replacement in Forgelin.kt

* Remove unnecessary newlines caused by IDEA
2017-07-19 21:11:55 -04:00
Shadowfacts 33320699ac Add mcmod.info
Closes #13
2017-06-11 16:17:46 -04:00
Shadowfacts d5138b9814 Update Kotlin, add JetBrains annotations and Kotlin coroutines
closes #9
2017-04-29 12:05:56 -04:00
Shadowfacts 4dda702c93 Update to Kotlin 1.1.1 & bump version 2017-03-27 16:45:14 -04:00
Shadowfacts 531b3da7ef Update to Kotlin 1.1
Closes #8
2017-03-05 10:32:02 -05:00
Shadowfacts e0209c61b2 Readd loading plugin
Prevents crash because of unloaded Forgelin/Kotlin classes.

Closes #6
Closes #7
2017-02-16 18:22:08 -05:00
Shadowfacts 106c697b49 Add mod, remove loading plugin, bump version
Closes #5
2017-02-15 19:21:37 -05:00
Shadowfacts 8a06ed849e Update to Kotlin 1.0.6, clean up language adapter 2016-12-28 09:42:03 -05:00
Shadowfacts 144c4468ee It lives 2016-11-14 10:59:31 -05:00
Shadowfacts b216102bb9 Add ListExtensions 2016-08-08 15:40:15 -04:00
Shadowfacts f342ce7b03 Property access syntax and elvis operators. Because. 2016-08-06 16:35:47 -04:00
Shadowfacts 3c23a62aad Fix object instance field name 2016-08-06 16:33:12 -04:00
Shadowfacts 1eedd2da9b Fix adapter name and bump version 2016-08-06 16:00:06 -04:00
Shadowfacts d6e4352134 Fix plugin class name, bump version 2016-08-06 15:54:59 -04:00
Shadowfacts 16bea29c08 Initial Commit 2016-08-06 10:28:05 -04:00