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
Mods should have a lifecycle in order to appropriately interact, apply mixin plugins, locate resources, and more.
This will require Implant to have an API, which can be injected into the main classes of the mods to be loaded. Plugins could be loaded using Guice, injecting in some of the API, or resource paths required. The main class could be registered as an event listener and have an initialization lifecycle. Mods could specify the classpath of the main class in the mod.json.
The lifecycle events could be listed as below.
CONSTRUCTION (mod resources are created),
INITIALIZATION (mixins and transformers are registered)
Mixin plugins could be registered on PRE_INITIALIZATION or INITIALIZATION as resources from configuration should be loaded by then.
There will also be a need to get mixin plugins to work in the first place. Will need to figure this one out.
The text was updated successfully, but these errors were encountered:
Mods should have a lifecycle in order to appropriately interact, apply mixin plugins, locate resources, and more.
This will require Implant to have an API, which can be injected into the main classes of the mods to be loaded. Plugins could be loaded using Guice, injecting in some of the API, or resource paths required. The main class could be registered as an event listener and have an initialization lifecycle. Mods could specify the classpath of the main class in the
mod.json
.The lifecycle events could be listed as below.
CONSTRUCTION (mod resources are created),
INITIALIZATION (mixins and transformers are registered)
Mixin plugins could be registered on PRE_INITIALIZATION or INITIALIZATION as resources from configuration should be loaded by then.
There will also be a need to get mixin plugins to work in the first place. Will need to figure this one out.
The text was updated successfully, but these errors were encountered: