You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Eventbus-DSL heavily relies on the Forge EventBus. Due to some mods using alternative event buses, for example, a popular choice is https://github.com/KevinPriv/KEventBus it would be easier to abstract the current DSL even further.
We could create an interface that the Forge EventBus and custom event buses can implement to call to register code.
Example:
interfaceEventBus {
fun <T> register(event:Class<T>, action:T.() ->Unit)
}
The text was updated successfully, but these errors were encountered:
In development, I ran into a few issues so I have reworked it. Once I test my code I will push it to a branch and you can explore how it would work after
Currently, the Eventbus-DSL heavily relies on the Forge EventBus. Due to some mods using alternative event buses, for example, a popular choice is https://github.com/KevinPriv/KEventBus it would be easier to abstract the current DSL even further.
We could create an interface that the Forge EventBus and custom event buses can implement to call to register code.
Example:
The text was updated successfully, but these errors were encountered: