Class ScreenEvent.KeyPressed

java.lang.Object
net.minecraftforge.eventbus.api.Event
Direct Known Subclasses:
ScreenEvent.KeyPressed.Post, ScreenEvent.KeyPressed.Pre
Enclosing class:
ScreenEvent

public abstract static class ScreenEvent.KeyPressed extends ScreenEvent.KeyInput
Fired when a keyboard key is pressed. See the two subclasses for listening before and after the normal handling.
See Also:
  • Constructor Details

    • KeyPressed

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