package com.mierzen.recall.keys; import com.mierzen.recall.Coord4D; import com.mierzen.recall.Teleport; import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.InputEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayerMP; public class KeyInputHandler { @SideOnly(Side.CLIENT) @SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true) public void onEvent(InputEvent.KeyInputEvent event) { if (KeyBindings.recallKey.isPressed()) { //player.addChatMessage(new ChatComponentText("Hello")); } } }