@Environment(value=CLIENT) @FunctionalInterface public static interface ScreenKeyboardEvents.AllowKeyPress
Modifier and Type | Method and Description |
---|---|
boolean |
allowKeyPress(net.minecraft.client.gui.screen.Screen screen,
int key,
int scancode,
int modifiers)
Checks if a key should be allowed to be pressed.
|
boolean allowKeyPress(net.minecraft.client.gui.screen.Screen screen, int key, int scancode, int modifiers)
key
- the named key code which can be identified by the constants in GLFW
scancode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held downorg.lwjgl.glfw.GLFW#GLFW_KEY_Q
,
Modifier key flags