Class GuiScreenEvent.KeyboardCharTypedEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiScreenEvent
net.minecraftforge.client.event.GuiScreenEvent.KeyboardCharTypedEvent
Direct Known Subclasses:
GuiScreenEvent.KeyboardCharTypedEvent.Post, GuiScreenEvent.KeyboardCharTypedEvent.Pre
Enclosing class:
GuiScreenEvent

public static class GuiScreenEvent.KeyboardCharTypedEvent extends GuiScreenEvent
  • Field Details

    • codePoint

      private final char codePoint
    • modifiers

      private final int modifiers
  • Constructor Details

    • KeyboardCharTypedEvent

      public KeyboardCharTypedEvent(Screen gui, char codePoint, int modifiers)
  • Method Details

    • getCodePoint

      public char getCodePoint()
      The code point typed, used for text entry.
    • getModifiers

      public int getModifiers()
      Bit field representing the modifier keys pressed.
      See Also:
      • GLFW.GLFW_MOD_SHIFT
      • GLFW.GLFW_MOD_CONTROL
      • GLFW.GLFW_MOD_ALT
      • GLFW.GLFW_MOD_SUPER