FabricKeyBinding

public class FabricKeyBinding extends KeyBinding

Expanded version of KeyBinding for use by Fabric mods.

*ALL* instantiated FabricKeyBindings should be registered in register!

Deprecated

Please migrate to v1. Please use registerKeyBinding instead.

Types

Builder
Link copied to clipboard
public class Builder

Functions

compareTo
Link copied to clipboard
int compareTo(KeyBinding keyBinding)
equals
Link copied to clipboard
boolean equals(KeyBinding other)
getBoundKey
Link copied to clipboard
InputUtil.Key getBoundKey()
Returns the configured KeyCode assigned to the KeyBinding from the player's settings.
getBoundKeyLocalizedText
Link copied to clipboard
Text getBoundKeyLocalizedText()
getBoundKeyTranslationKey
Link copied to clipboard
String getBoundKeyTranslationKey()
getCategory
Link copied to clipboard
String getCategory()
getDefaultKey
Link copied to clipboard
InputUtil.Key getDefaultKey()
getLocalizedName
Link copied to clipboard
static Supplier<TextgetLocalizedName(String id)
getTranslationKey
Link copied to clipboard
String getTranslationKey()
isDefault
Link copied to clipboard
boolean isDefault()
isPressed
Link copied to clipboard
boolean isPressed()
isUnbound
Link copied to clipboard
boolean isUnbound()
matchesKey
Link copied to clipboard
boolean matchesKey(int keyCode, int scanCode)
matchesMouse
Link copied to clipboard
boolean matchesMouse(int code)
onKeyPressed
Link copied to clipboard
static void onKeyPressed(InputUtil.Key key)
setBoundKey
Link copied to clipboard
void setBoundKey(InputUtil.Key boundKey)
setKeyPressed
Link copied to clipboard
static void setKeyPressed(InputUtil.Key key, boolean pressed)
setPressed
Link copied to clipboard
void setPressed(boolean pressed)
unpressAll
Link copied to clipboard
static void unpressAll()
updateKeysByCode
Link copied to clipboard
static void updateKeysByCode()
updatePressedStates
Link copied to clipboard
static void updatePressedStates()
wasPressed
Link copied to clipboard
boolean wasPressed()

Sources

jvm source
Link copied to clipboard