public class KeyInputEventHook
extends java.lang.Object
InputEvent.KeyInputEvent| Modifier and Type | Method and Description |
|---|---|
void |
addKeyHandler(net.minecraft.client.settings.KeyBinding kb,
KeyHandler handler)
Binds a
KeyHandler to key presses of the
specified KeyBinding. |
static KeyInputEventHook |
getInstance()
Gets the unique instance (singleton) of this class.
|
void |
onPlayerKeyInput(cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent event)
Handles key presses for keybindings added by EvilCraft
|
public static KeyInputEventHook getInstance()
public void onPlayerKeyInput(cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent event)
event - The input event.public void addKeyHandler(net.minecraft.client.settings.KeyBinding kb,
KeyHandler handler)
KeyHandler to key presses of the
specified KeyBinding. Whenever the KeyBinding
is pressed, KeyHandler.onKeyPressed(KeyBinding) is called.kb - KeyBinding to which we bind the KeyHandler.handler - KeyHandler that will be linked to presses of the given KeyBinding.