Interface ClientScreenInputEvent.KeyReleased

Enclosing interface:
ClientScreenInputEvent

public static interface ClientScreenInputEvent.KeyReleased
  • Method Summary

    Modifier and Type
    Method
    Description
    keyReleased(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, int keyCode, int scanCode, int modifiers)
    Invoked whenever a held key is released inside a screen.
  • Method Details

    • keyReleased

      EventResult keyReleased(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, int keyCode, int scanCode, int modifiers)
      Invoked whenever a held key is released inside a screen. Equivalent to Forge's GuiScreenEvent.KeyboardKeyReleasedEvent event.

      This event is handled in two phases PRE and POST, which are invoked before and after the keys have been processed by the screen, respectively.

      Parameters:
      client - The Minecraft instance performing it.
      screen - The screen this keystroke was performed in.
      keyCode - The key code.
      scanCode - The raw keyboard scan code.
      modifiers - Additional modifiers.
      Returns:
      A EventResult determining the outcome of the event, the execution of the vanilla releasing mechanism may be cancelled by the result.