@Override public byte[] transform(String name, String transformedName, byte[] bytes) { if (bytes == null) { return null; } ClassReader classReader = new ClassReader(bytes); ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS); RemappingClassAdapter remapAdapter = new FMLRemappingAdapter(classWriter); classReader.accept(remapAdapter, ClassReader.EXPAND_FRAMES); return classWriter.toByteArray(); }