Interface ScreenKeyboardEvents.AllowKeyPress
- 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.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowKeyPress(net.minecraft.client.gui.screens.Screen screen, net.minecraft.client.input.KeyEvent context) Checks if a key should be allowed to be pressed.
-
Method Details
-
allowKeyPress
boolean allowKeyPress(net.minecraft.client.gui.screens.Screen screen, net.minecraft.client.input.KeyEvent context) Checks if a key should be allowed to be pressed.- Parameters:
context- the context of the key press, containing the key, scancode and modifiers- Returns:
- whether the key press should be processed
- See Also:
-