Class ScreenEvent.Preedit
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.Preedit
- Direct Known Subclasses:
ScreenEvent.Preedit.Post, ScreenEvent.Preedit.Pre
- Enclosing class:
ScreenEvent
Fired when an Input Method Editor (IME) preedit event is received by a screen.
An IME lets users enter text that is not directly available from their keyboard, such as Chinese, Japanese, and Korean characters. While input is being composed, the IME supplies temporary preedit text that can change until the user commits it.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFired after the screen's preedit handler, only if the corresponding Pre event is not canceled and the screen's preedit handler returnsfalse.static classFired before the preedit event is received by the screen's preedit handler.Nested classes/interfaces inherited from class ScreenEvent
ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Preedit, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the current preedit composition, ornullif there is no active composition.Methods inherited from class ScreenEvent
getScreen
-
Field Details
-
preeditEvent
-
-
Constructor Details
-
Preedit
-
-
Method Details
-
getPreeditEvent
Returns the current preedit composition, ornullif there is no active composition.- Returns:
- the current preedit composition, or
nullif there is no active composition
-