For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.


getRealState()

getRealState(): boolean

Gets the real keyboard state of this bind, ignores spoofing breeze modules or other game modifications.

Returns

boolean


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