getKeyBindFromKey

abstract fun getKeyBindFromKey(keyCode: Int): KeyBind?

Get the KeyBind from an already existing Minecraft KeyBinding, otherwise, returns null.

Return

the KeyBind from a Minecraft KeyBinding, or null if one doesn't exist

See also

org.lwjgl.input.Keyboard

(http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)

Parameters

keyCode

the keycode to search for, see Keyboard below. Ex. Keyboard.KEY_A


abstract fun getKeyBindFromKey(keyCode: Int, description: String, category: String): KeyBind

Get the KeyBind from an already existing Minecraft KeyBinding, else, return a new one.

Return

the KeyBind from a Minecraft KeyBinding, or a new one if one doesn't exist

See also

org.lwjgl.input.Keyboard

(http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)

Parameters

keyCode

the keycode which the keybind will respond to, see Keyboard below. Ex. Keyboard.KEY_A

description

the description of the keybind

category

the keybind category the keybind will be in


abstract fun getKeyBindFromKey(keyCode: Int, description: String): KeyBind

Get the KeyBind from an already existing Minecraft KeyBinding, else, return a new one. This will create the KeyBind with the default category "ChatTriggers".

Return

the KeyBind from a Minecraft KeyBinding, or a new one if one doesn't exist

See also

org.lwjgl.input.Keyboard

(http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html)

Parameters

keyCode

the keycode to search for, see Keyboard below. Ex. Keyboard.KEY_A

description

the description of the keybind