public class ToggleableKeyBinding extends KeyBinding
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.BooleanSupplier |
getterToggle |
| Constructor and Description |
|---|
ToggleableKeyBinding(java.lang.String descriptionIn,
int codeIn,
java.lang.String categoryIn,
java.util.function.BooleanSupplier getterIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
setPressed(boolean valueIn)
Forge End
|
bind, compareTo, conflicts, getDefault, getDisplayString, getKey, getKeyCategory, getKeyConflictContext, getKeyDescription, getKeyModifier, getKeyModifierDefault, getLocalizedName, getTranslationKey, isDefault, isInvalid, isKeyDown, isPressed, matchesKey, matchesMouseKey, onTick, resetKeyBindingArrayAndHash, setKeyBindState, setKeyConflictContext, setKeyModifierAndCode, unPressAllKeys, updateKeyBindStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyBinding, hasKeyCodeModifierConflict, isActiveAndMatches, setToDefaultpublic ToggleableKeyBinding(java.lang.String descriptionIn,
int codeIn,
java.lang.String categoryIn,
java.util.function.BooleanSupplier getterIn)
public void setPressed(boolean valueIn)
KeyBindingsetPressed in class KeyBinding