Interface ClientRawInputEvent.KeyPressed
- Enclosing interface:
- ClientRawInputEvent
public static interface ClientRawInputEvent.KeyPressed
-
Method Summary
Modifier and TypeMethodDescriptionkeyPressed(net.minecraft.client.Minecraft client, int keyCode, int scanCode, int action, int modifiers) Invoked whenever a key input is performed.
-
Method Details
-
keyPressed
EventResult keyPressed(net.minecraft.client.Minecraft client, int keyCode, int scanCode, int action, int modifiers) Invoked whenever a key input is performed. Equivalent to Forge'sInputEvent.KeyInputEventevent.- Parameters:
client- The Minecraft instance performing it.keyCode- The key code.scanCode- The raw keyboard scan code.action- The action that should be performed.modifiers- Additional modifiers.- Returns:
- A
EventResultdetermining the outcome of the event, the execution of the vanilla pressing mechanism may be cancelled by the result.
-