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
named net/minecraft/client/option/StickyKeyBinding
intermediary net/minecraft/class_4666
official gak
  • Field Details

    • toggleGetter

      private final BooleanSupplier toggleGetter
      Mappings:
      Namespace Name Mixin selector
      named toggleGetter Lnet/minecraft/client/option/StickyKeyBinding;toggleGetter:Ljava/util/function/BooleanSupplier;
      intermediary field_21334 Lnet/minecraft/class_4666;field_21334:Ljava/util/function/BooleanSupplier;
      official b Lgak;b:Ljava/util/function/BooleanSupplier;
    • resetOnScreenClose

      private boolean resetOnScreenClose
      Mappings:
      Namespace Name Mixin selector
      named resetOnScreenClose Lnet/minecraft/client/option/StickyKeyBinding;resetOnScreenClose:Z
      intermediary field_62108 Lnet/minecraft/class_4666;field_62108:Z
      official c Lgak;c:Z
    • restore

      private final boolean restore
      Mappings:
      Namespace Name Mixin selector
      named restore Lnet/minecraft/client/option/StickyKeyBinding;restore:Z
      intermediary field_62926 Lnet/minecraft/class_4666;field_62926:Z
      official d Lgak;d:Z
  • Constructor Details

    • StickyKeyBinding

      public StickyKeyBinding(String id, int code, KeyBinding.Category category, BooleanSupplier toggleGetter, boolean restore)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/option/StickyKeyBinding;<init>(Ljava/lang/String;ILnet/minecraft/client/option/KeyBinding$Category;Ljava/util/function/BooleanSupplier;Z)V
      intermediary <init> Lnet/minecraft/class_4666;<init>(Ljava/lang/String;ILnet/minecraft/class_304$class_11900;Ljava/util/function/BooleanSupplier;Z)V
      official <init> Lgak;<init>(Ljava/lang/String;ILfzx$a;Ljava/util/function/BooleanSupplier;Z)V
    • StickyKeyBinding

      public StickyKeyBinding(String id, InputUtil.Type type, int code, KeyBinding.Category category, BooleanSupplier toggleGetter, boolean restore)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/option/StickyKeyBinding;<init>(Ljava/lang/String;Lnet/minecraft/client/util/InputUtil$Type;ILnet/minecraft/client/option/KeyBinding$Category;Ljava/util/function/BooleanSupplier;Z)V
      intermediary <init> Lnet/minecraft/class_4666;<init>(Ljava/lang/String;Lnet/minecraft/class_3675$class_307;ILnet/minecraft/class_304$class_11900;Ljava/util/function/BooleanSupplier;Z)V
      official <init> Lgak;<init>(Ljava/lang/String;Lfst$b;ILfzx$a;Ljava/util/function/BooleanSupplier;Z)V
  • Method Details

    • shouldSetOnGameFocus

      protected boolean shouldSetOnGameFocus()
      Overrides:
      shouldSetOnGameFocus in class KeyBinding
      Mappings:
      Namespace Name Mixin selector
      named shouldSetOnGameFocus Lnet/minecraft/client/option/KeyBinding;shouldSetOnGameFocus()Z
      intermediary method_72701 Lnet/minecraft/class_304;method_72701()Z
      official j Lfzx;j()Z
    • setPressed

      public void setPressed(boolean pressed)
      Overrides:
      setPressed in class KeyBinding
      Mappings:
      Namespace Name Mixin selector
      named setPressed Lnet/minecraft/client/option/KeyBinding;setPressed(Z)V
      intermediary method_23481 Lnet/minecraft/class_304;method_23481(Z)V
      official a Lfzx;a(Z)V
    • reset

      protected void reset()
      Overrides:
      reset in class KeyBinding
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/client/option/KeyBinding;reset()V
      intermediary method_1425 Lnet/minecraft/class_304;method_1425()V
      official i Lfzx;i()V
    • shouldRestoreOnScreenClose

      public boolean shouldRestoreOnScreenClose()
      Mappings:
      Namespace Name Mixin selector
      named shouldRestoreOnScreenClose Lnet/minecraft/client/option/StickyKeyBinding;shouldRestoreOnScreenClose()Z
      intermediary method_73364 Lnet/minecraft/class_4666;method_73364()Z
      official q Lgak;q()Z
    • untoggle

      protected void untoggle()
      Mappings:
      Namespace Name Mixin selector
      named untoggle Lnet/minecraft/client/option/StickyKeyBinding;untoggle()V
      intermediary method_52232 Lnet/minecraft/class_4666;method_52232()V
      official r Lgak;r()V