Class GuiScreenEvent.KeyboardKeyPressedEvent.Pre

Enclosing class:
GuiScreenEvent.KeyboardKeyPressedEvent

public static class GuiScreenEvent.KeyboardKeyPressedEvent.Pre extends GuiScreenEvent.KeyboardKeyPressedEvent
This event fires when keyboard input is detected for a GuiScreen, before it is handled. Cancel this event to bypass GuiEventListener.keyPressed(int, int, int).
  • Constructor Details

    • Pre

      public Pre(Screen gui, int keyCode, int scanCode, int modifiers)