Package net.minecraft.client.option
Class StickyKeyBinding
java.lang.Object
net.minecraft.client.option.KeyBinding
net.minecraft.client.option.StickyKeyBinding
- All Implemented Interfaces:
Comparable<KeyBinding>
@Environment(CLIENT) public class StickyKeyBinding extends KeyBinding
- Mappings:
Namespace Name official dqw
intermediary net/minecraft/class_4666
named net/minecraft/client/option/StickyKeyBinding
-
Field Summary
Fields Modifier and Type Field Description private BooleanSupplier
toggleGetter
-
Constructor Summary
Constructors Constructor Description StickyKeyBinding(String id, int code, String category, BooleanSupplier toggleGetter)
-
Method Summary
Modifier and Type Method Description void
setPressed(boolean pressed)
Methods inherited from class net.minecraft.client.option.KeyBinding
compareTo, equals, getBoundKeyLocalizedText, getBoundKeyTranslationKey, getCategory, getDefaultKey, getLocalizedName, getTranslationKey, isDefault, isPressed, isUnbound, matchesKey, matchesMouse, onKeyPressed, setBoundKey, setKeyPressed, unpressAll, updateKeysByCode, updatePressedStates, wasPressed
-
Field Details
-
toggleGetter
- Mappings:
Namespace Name Mixin selector official a
Ldqw;a:Ljava/util/function/BooleanSupplier;
intermediary field_21334
Lnet/minecraft/class_4666;field_21334:Ljava/util/function/BooleanSupplier;
named toggleGetter
Lnet/minecraft/client/option/StickyKeyBinding;toggleGetter:Ljava/util/function/BooleanSupplier;
-
-
Constructor Details
-
StickyKeyBinding
- Mappings:
Namespace Name Mixin selector official <init>
Ldqw;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BooleanSupplier;)V
intermediary <init>
Lnet/minecraft/class_4666;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BooleanSupplier;)V
named <init>
Lnet/minecraft/client/option/StickyKeyBinding;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BooleanSupplier;)V
-
-
Method Details
-
setPressed
public void setPressed(boolean pressed)- Overrides:
setPressed
in classKeyBinding
- Mappings:
Namespace Name Mixin selector official a
Ldqh;a(Z)V
intermediary method_23481
Lnet/minecraft/class_304;method_23481(Z)V
named setPressed
Lnet/minecraft/client/option/KeyBinding;setPressed(Z)V
-