Reflective Event System made for create minecraft client form scratch
If you have not already, add Jitpack as a repository:
repositories {
maven { url 'https://jitpack.io' }
}
Add this in the dependencies block:
dependencies {
implementation 'com.github.cubk1:EventManager:-SNAPSHOT'
}
EventManager eventManager = new EventManager();
Test test = new Test();
eventManager.register(test); // register
eventManager.unregister(test); // unregister
eventManager.call(new UpdateEvent());