Package net.minecraftforge.client.event
Class ScreenEvent.KeyPressed
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.KeyInput
net.minecraftforge.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.minecraftforge.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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.client.event.ScreenEvent.KeyInput
getKeyCode, getModifiers, getScanCode
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
KeyPressed
-