TesseraAgent

Tiny java.lang.instrument agent holder. Tessera self-attaches to its own JVM at runtime (see InstrumentationLoader) so TypeScript-defined mixins can retransform already-loaded Minecraft classes — something a static .mixins.json cannot do once the game is up.

This class is loaded twice with two distinct identities: once by Knot (as part of the mod) and once by the system class loader when the attach API loads the generated agent jar. Only the system-loader copy's inst is populated by agentmain; the loader reads it back via ClassLoader.getSystemClassLoader(). Keep this class dependency-free so it loads cleanly from the bare agent jar.

Properties

Link copied to clipboard
Set by agentmain/premain on the system-loader copy of this class.

Functions

Link copied to clipboard
open fun agentmain(args: String, instrumentation: Instrumentation)
Link copied to clipboard
open fun premain(args: String, instrumentation: Instrumentation)