return bytes;
}
public byte[] injectHook2(byte[] bytes, String clazz) {
try {
ClassNode cnode = createClassNode(bytes);
MethodVisitor mv = cnode.visitMethod(ACC_PUBLIC, "getPowerHandler", "()Lbuildcraft/api/power/PowerHandler;", null, null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitFieldInsn(GETFIELD, clazz.replace(".", "/"), "powerHandler", "Lbuildcraft/api/power/PowerHandler;");
mv.visitInsn(ARETURN);
mv.visitMaxs(1, 0);
mv = cnode.visitMethod(ACC_PUBLIC, "getPowerSources", "()[Z", null, null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitFieldInsn(GETFIELD, clazz.replace(".", "/"), "powerSources", "[Z");
mv.visitInsn(ARETURN);
mv.visitMaxs(1, 0);