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
Nested ClassesModifier and TypeClassDescriptionstatic classFired after the character input is handled, if not handled by the screen and the correspondingScreenEvent.CharacterTyped.Preis not cancelled.static classFired 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.RenderInventoryMobEffectsNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the character code point.intReturns a bit field representing the active modifier keys.Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreenMethods 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 bitSHIFT modifier key bitALT modifier key bitSUPER modifier key bitCAPS LOCK modifier key bitNUM LOCK modifier key bit- the online GLFW documentation
-