ok, realized that the if statement wasn't firing, so after I changed it, it crashed me, am I doing something wrong in the code?
package com.crazykid080.ClearChat.client.handler;
import net.minecraft.client.gui.GuiNewChat;
import com.crazykid080.ClearChat.client.settings.Keybindings;
import com.crazykid080.ClearChat.reference.Key;
import com.crazykid080.ClearChat.utility.LogHelper;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.InputEvent;
public class KeyInputEventHandler {
private static Key getPressedKeyBinding(){
if (Keybindings.clear.isPressed()){
return Key.CLEAR;
}else{
return null;
}
}
public int field_146253_i = 1;
public int p_146242_1_ = 1;
void deleteChatLine(){
}
void clearChatMessages(){
}
@SubscribeEvent
public void handleKeyInputEvent(InputEvent.KeyInputEvent event){
LogHelper.info(getPressedKeyBinding());
if(getPressedKeyBinding().equals(Key.CLEAR)){
LogHelper.fatal("IT WORKED");
//deleteChatLine();
//clearChatMessages();
}else{
}
}
}