Interface ScreenKeyboardEvents.AllowKeyRelease

Enclosing class:
ScreenKeyboardEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ScreenKeyboardEvents.AllowKeyRelease
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowKeyRelease(net.minecraft.client.gui.screens.Screen screen, net.minecraft.client.input.KeyEvent event)
    Checks if a pressed key should be allowed to be released.
  • Method Details

    • allowKeyRelease

      boolean allowKeyRelease(net.minecraft.client.gui.screens.Screen screen, net.minecraft.client.input.KeyEvent event)
      Checks if a pressed key should be allowed to be released.
      Parameters:
      event - the key press event, containing the key, scancode and modifiers
      Returns:
      whether the key press should be released
      See Also: