Class ScreenEvent.KeyPressed.Post

Enclosing class:
ScreenEvent.KeyPressed

public static class ScreenEvent.KeyPressed.Post extends ScreenEvent.KeyPressed
Fired after the key press is handled, if not handled by the screen and the corresponding ScreenEvent.KeyPressed.Pre is not cancelled.

This event is cancellable, and does not have a result. If the event is cancelled, the key press will be set as handled.

This event is fired on the main Forge event bus, only on the logical client.

  • Constructor Details

    • Post

      @Internal public Post(Screen screen, int keyCode, int scanCode, int modifiers)