Update "Reflection is broken" section
Some checks failed
push-build-apidoc / build (push) Has been cancelled
push-build-apidoc / generate-javadoc (push) Has been cancelled

This commit is contained in:
JeremyStar™ 2024-10-03 21:33:24 +02:00
parent b694a33180
commit d6e56f8dd9
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -34,9 +34,8 @@ It can do the following things:
## Known issues ## Known issues
### Reflection is broken ### Reflection is broken
Due to how the mod and plugin loaders load JAR files, scanning the classpath for annotations does not work. Due to how the mod and plugin loaders load JAR files, scanning the classpath for annotations does not work.
This means that the entire event system and automatic subsystem detection is broken. This means that events have to be registered manually. You can do that by calling [EventHelper#registerEvent](https://jd.engine.staropensource.de/v1-alpha5/base/de/staropensource/sosengine/base/implementable/helper/EventHelper.html#registerEvent(java.lang.Class,de.staropensource.sosengine.base.implementable.EventListenerCode,de.staropensource.sosengine.base.type.EventPriority)).
We're waiting for sos!engine developers to implement methods for manually registering subsystems and event listeners. If you want to use a specific subsystem, either find or make a plugin/mod porting that subsystem to Minecraft (best option), or shade and include the subsystem in your final JAR and hope nothing breaks. Only do that if you have no other choice or the subsystem is specific to your plugin or modification.
Until then, use other methods for initializing subsystems and sending events and data around.
## Contributing ## Contributing
Please see [sos!engine's contributing section](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/README.md#contributing) Please see [sos!engine's contributing section](https://git.staropensource.de/StarOpenSource/Engine/src/branch/develop/README.md#contributing)