Class ScreenEvent.KeyPressed.Post

All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
ScreenEvent.KeyPressed

public static class ScreenEvent.KeyPressed.Post extends ScreenEvent.KeyPressed implements net.neoforged.bus.api.ICancellableEvent
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)