-
Notifications
You must be signed in to change notification settings - Fork 0
mod.bt.Keybind
The keybind class represents a single Keybinding. Bind Tweaker does not allow you to edit the default or changed key for Keybindings (other than to set a keybinding to disabled).
String bindmenu; -getter/setter- The name of the bind menu to open when this bind has been pressed. Leave as default (null) to not open a bind menu.
boolean bindmenuUseBindChecks; -getter/setter- Only works if bindmenu is not null. Decides if keybindings in a bind menu should use bind checks.
boolean child -getter- Returns true if the current keybinding is a child of another keybinding.
boolean isDefault(); Returns true if the keybinding is set to its default value.
String getDisplayName(); Returns the display name of the keybinding. (the key name, like "SLASH" or "a")
String getDescription(); Returns the description of the keybinding.
boolean isChild(); Method version of the child getter.
void addChild(Keybind bind); Adds a child to the current keybinding. Children are removed the options menu, and are only triggered when the parent is triggered. A keybind can have multiple children.
Keybind withDisable(); Returns the current keybind but sets the key to 0 (NONE).
void setBindCheck(BindCheck check); Sets the Bind Check for the keybinding.
int getDefault(); Returns the keycode for the default key for this keybinding.