Class ScreenEvent.KeyPressed
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.KeyInput
net.neoforged.neoforge.client.event.ScreenEvent.KeyPressed
- Direct Known Subclasses:
ScreenEvent.KeyPressed.Post
,ScreenEvent.KeyPressed.Pre
- Enclosing class:
ScreenEvent
Fired when a keyboard key is pressed.
See the two subclasses for listening before and after the normal handling.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the key press is handled, if not handled by the screen and the correspondingScreenEvent.KeyPressed.Pre
is not cancelled.static class
Fired before the key press is handled by the screen.Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.KeyInput
getKeyCode, getModifiers, getScanCode
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent
getScreen
-
Constructor Details
-
KeyPressed
-