MCKeyBinding
Represents a Minecraft KeyBinding, breeze itself uses a different keybind system.
Properties
keyDown
keyDown:
boolean
If the key is down or not, manipulating this will have effect in-game. However we recommend using our SpoofInputEvent instead!
Methods
getKeyCategory()
getKeyCategory():
string
Returns
string
The minecraft category of the key.
getKeyCode()
getKeyCode():
number
Returns
number
The lwjgl keycode for the bind, mostly useless.
getKeyDescription()
getKeyDescription():
string
Returns
string
The minecraft description of the key.
isPressed()
isPressed():
boolean
Checks if the keybind was recently pressed and returns true in that case.
Returns
boolean
Remarks
This pulls presses from minecraft, calling isPressed will make the key be pressed ingame one less time.
Last updated