I tried to write a KeyHandler, but when i used the Method "Keybinding.isPressed()" everything works fine in Eclipse, but after recompiling and testing with my normal Launcher i got this StackTrace:
This is the code, the StackTrace points to.
if(this.stats.isPressed())
{
EntityClientPlayerMP var2 = FMLClientHandler.instance().getClient().thePlayer;
FMLClientHandler.instance().displayGuiScreen(var2, new GuiCowMod());
}
Thanks for your help