MixinManager

Front door for TypeScript mixins. Lazily self-attaches the instrumentation agent and installs MixinTransformer on the first injection, registers each hook in MixinRegistry, and triggers a retransform so the change takes effect immediately — even for Minecraft classes that are already loaded. Reverting (on /te reload or module unload) retransforms the affected classes back to their original bytes.

All calls are expected on the JS/render thread (where scripts register), matching the rest of the engine.

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun register(target: String, method: String, descriptor: String?, at: String, callback: Consumer<Any?>): MixinRegistry.Hook
Link copied to clipboard
Link copied to clipboard
fun removeModule(moduleName: String)
Link copied to clipboard
fun widen(target: String, kind: AccessRegistry.Kind, member: String?, descriptor: String?)

Register a runtime access widening (make a class/method/field public, non-final).