@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, getCategory, getDefaultKeyCode, getId, getLocalizedName, getLocalizedName, getName, isDefault, isNotBound, isPressed, matchesKey, matchesMouse, onKeyPressed, setKeyCode, 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