Package net.minecraftforge.client.event
Class ScreenEvent.CharacterTyped
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.CharacterTyped
- Direct Known Subclasses:
ScreenEvent.CharacterTyped.Post
,ScreenEvent.CharacterTyped.Pre
- Enclosing class:
- ScreenEvent
Fired when a keyboard key corresponding to a character is typed.
See the two subclasses for listening before and after the normal handling.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the character input is handled, if not handled by the screen and the correspondingScreenEvent.CharacterTyped.Pre
is not cancelled.static class
Fired before the character input 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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
Returns the character code point.int
Returns a bit field representing the active modifier keys.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
-
Field Details
-
codePoint
private final char codePoint -
modifiers
private final int modifiers
-
-
Constructor Details
-
CharacterTyped
-
-
Method Details
-
getCodePoint
public char getCodePoint()Returns the character code point.- Returns:
- the character code point
-
getModifiers
public int getModifiers()Returns a bit field representing the active modifier keys.- Returns:
- a bit field representing the active modifier keys
- See Also:
-
CTRL modifier key bit
SHIFT modifier key bit
ALT modifier key bit
SUPER modifier key bit
CAPS LOCK modifier key bit
NUM LOCK modifier key bit
- the online GLFW documentation
-