Another transformer that could be nice (thinking in the case of the runtime remapping of reflection) would be taking a virtual method call and turning it into a static one.
clazz.getDeclaredField("foobar")
to
PatchworkReflection.getDeclaredField(clazz, "foobar")
Could also be useful for instances where we might need to emulate side effects that Forge mods expect themselves to have, but might break Fabric mods.
Another transformer that could be nice (thinking in the case of the runtime remapping of reflection) would be taking a virtual method call and turning it into a static one.
Could also be useful for instances where we might need to emulate side effects that Forge mods expect themselves to have, but might break Fabric mods.