@Environment(value=CLIENT) public class StickyKeyBinding extends KeyBinding
Modifier and Type | Field and Description |
---|---|
private BooleanSupplier |
toggleGetter |
Constructor and Description |
---|
StickyKeyBinding(String id,
int code,
String category,
BooleanSupplier toggleGetter) |
Modifier and Type | Method and Description |
---|---|
void |
setPressed(boolean pressed) |
compareTo, equals, getBoundKeyLocalizedText, getBoundKeyTranslationKey, getCategory, getDefaultKey, getLocalizedName, getTranslationKey, isDefault, isPressed, isUnbound, matchesKey, matchesMouse, onKeyPressed, setBoundKey, setKeyPressed, unpressAll, updateKeysByCode, updatePressedStates, wasPressed
private final BooleanSupplier toggleGetter
public StickyKeyBinding(String id, int code, String category, BooleanSupplier toggleGetter)
public void setPressed(boolean pressed)
setPressed
in class KeyBinding