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

public static class ScreenEvent.CharacterTyped extends ScreenEvent
Fired when a keyboard key corresponding to a character is typed. See the two subclasses for listening before and after the normal handling.
See Also:
  • Field Details

    • codePoint

      private final char codePoint
    • modifiers

      private final int modifiers
  • Constructor Details

    • CharacterTyped

      @Internal public CharacterTyped(Screen screen, char codePoint, int modifiers)
  • 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: