use of codechicken.lib.asm.CC_ClassWriter in project Galacticraft by micdoodle8.
the class MCPDeobfuscationTransformer method transform.
@Override
public byte[] transform(String name, String transformedName, byte[] bytes) {
if (name.equals("net.minecraftforge.fml.common.Loader")) {
bytes = injectCallback(bytes);
activated = true;
}
if (!activated || bytes == null) {
return bytes;
}
ClassNode cnode = ASMHelper.createClassNode(bytes, ClassReader.EXPAND_FRAMES);
ClassWriter cw = new CC_ClassWriter(0, true);
run.remap(cnode, cw);
return cw.toByteArray();
}
Aggregations