rendered paste body public void update() throws IOException { am = new ClassGen("AccessorMethods", "java.lang.Object", "AccessorMethods.class", ACC_PUBLIC, new String[]{}); i = new InstructionFactory(am); setupInit(); while (!done) { Enumeration ent = jar.entries(); while (ent.hasMoreElements()) { JarEntry jEnt = (JarEntry) ent.nextElement(); if (jEnt.getName().endsWith(".class")) { ClassParser cp = new ClassParser(jar.getInputStream(jEnt), jEnt.getName()); scanClass(cp.parse()); } } done = true; } log("Successfully added access methods: " + success + " out of 9"); am.getJavaClass().dump(new File(am.getFileName())); } private void scanClass(JavaClass clz) { switch (step) { case 1: getMouseWrapperObject(clz); break; case 2: getStringWrapperClass(clz); break; case 3: getActionDataInformation(clz); break; case 4: getNPCArray(clz); break; default: done = true; break; } }