Errors:
The method getKey() is undefined for the type Module
The method toggle() is undefined for the type Module Client.java
I'm Veery dumb and idk how to fix that would you help me?
Error Minecraft Hacked Client
Source code:
`
package net.geocheat.cheat;
import java.util.concurrent.CopyOnWriteArrayList;
import org.lwjgl.opengl.Display;
public class Client {
public static String name = "Geo Hacked Client", version = "1.8";
public static CopyOnWriteArrayList<Module> modules = new CopyOnWriteArrayList<Module>();
public static void startup(){
System.out.println("Starting " + name + " v" + version);
Display.setTitle(name + " v" + version);
}
public static void keyPress(int key) {
for(Module m : modules) {
if(m.getKey() == key) {
m.toggle();
}
}
}
}
`
13 days later
import module
a year later
- Edited
How to import the module?
Just solved, use
import X.modules.Module;