2020-12-22 15:45:08 -05:00
|
|
|
CLASS net/minecraft/class_304 net/minecraft/client/option/KeyBinding
|
2021-08-07 11:51:52 -04:00
|
|
|
FIELD field_1652 KEY_CATEGORIES Ljava/util/Set;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_1653 pressed Z
|
2020-05-15 11:36:40 -04:00
|
|
|
FIELD field_1654 defaultKey Lnet/minecraft/class_3675$class_306;
|
|
|
|
FIELD field_1655 boundKey Lnet/minecraft/class_3675$class_306;
|
2021-08-07 11:51:52 -04:00
|
|
|
FIELD field_1656 CATEGORY_ORDER_MAP Ljava/util/Map;
|
|
|
|
FIELD field_1657 KEYS_BY_ID Ljava/util/Map;
|
|
|
|
FIELD field_1658 KEY_TO_BINDINGS Ljava/util/Map;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_1659 category Ljava/lang/String;
|
2020-05-15 11:36:40 -04:00
|
|
|
FIELD field_1660 translationKey Ljava/lang/String;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_1661 timesPressed I
|
2021-04-09 04:36:00 -04:00
|
|
|
FIELD field_32136 MOVEMENT_CATEGORY Ljava/lang/String;
|
|
|
|
FIELD field_32137 MISC_CATEGORY Ljava/lang/String;
|
|
|
|
FIELD field_32138 MULTIPLAYER_CATEGORY Ljava/lang/String;
|
|
|
|
FIELD field_32139 GAMEPLAY_CATEGORY Ljava/lang/String;
|
|
|
|
FIELD field_32140 INVENTORY_CATEGORY Ljava/lang/String;
|
|
|
|
FIELD field_32141 UI_CATEGORY Ljava/lang/String;
|
|
|
|
FIELD field_32142 CREATIVE_CATEGORY Ljava/lang/String;
|
2019-01-05 05:03:46 -05:00
|
|
|
METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V
|
2020-05-15 11:36:40 -04:00
|
|
|
ARG 1 translationKey
|
|
|
|
ARG 2 code
|
2019-01-05 05:03:46 -05:00
|
|
|
ARG 3 category
|
2019-07-08 12:09:22 -04:00
|
|
|
METHOD <init> (Ljava/lang/String;Lnet/minecraft/class_3675$class_307;ILjava/lang/String;)V
|
2020-05-15 11:36:40 -04:00
|
|
|
ARG 1 translationKey
|
2019-01-05 05:03:46 -05:00
|
|
|
ARG 2 type
|
|
|
|
ARG 3 code
|
|
|
|
ARG 4 category
|
2020-05-15 11:36:40 -04:00
|
|
|
METHOD compareTo (Ljava/lang/Object;)I
|
|
|
|
ARG 1 other
|
|
|
|
METHOD method_1415 isUnbound ()Z
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1416 setKeyPressed (Lnet/minecraft/class_3675$class_306;Z)V
|
2019-01-16 10:48:01 -05:00
|
|
|
ARG 0 key
|
|
|
|
ARG 1 pressed
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1417 matchesKey (II)Z
|
|
|
|
ARG 1 keyCode
|
|
|
|
ARG 2 scanCode
|
2021-06-07 09:42:29 -04:00
|
|
|
METHOD method_1418 (Ljava/util/HashMap;)V
|
|
|
|
ARG 0 map
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1419 getLocalizedName (Ljava/lang/String;)Ljava/util/function/Supplier;
|
2019-04-12 10:15:55 -04:00
|
|
|
ARG 0 id
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1420 onKeyPressed (Lnet/minecraft/class_3675$class_306;)V
|
2020-05-15 11:36:40 -04:00
|
|
|
ARG 0 key
|
|
|
|
METHOD method_1422 setBoundKey (Lnet/minecraft/class_3675$class_306;)V
|
|
|
|
ARG 1 boundKey
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1423 getCategory ()Ljava/lang/String;
|
|
|
|
METHOD method_1424 updatePressedStates ()V
|
|
|
|
METHOD method_1425 reset ()V
|
|
|
|
METHOD method_1426 updateKeysByCode ()V
|
|
|
|
METHOD method_1427 isDefault ()Z
|
2020-05-15 11:36:40 -04:00
|
|
|
METHOD method_1428 getBoundKeyTranslationKey ()Ljava/lang/String;
|
|
|
|
METHOD method_1429 getDefaultKey ()Lnet/minecraft/class_3675$class_306;
|
|
|
|
METHOD method_1431 getTranslationKey ()Ljava/lang/String;
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1433 matchesMouse (I)Z
|
|
|
|
ARG 1 code
|
|
|
|
METHOD method_1434 isPressed ()Z
|
2021-05-13 02:10:36 -04:00
|
|
|
COMMENT {@return if the key is being held down}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Note that if you are continuously calling this method (like every
|
|
|
|
COMMENT tick), it doesn't always catch all key presses. This is because the key
|
|
|
|
COMMENT can be pressed and released before the next check.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #wasPressed()
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1435 equals (Lnet/minecraft/class_304;)Z
|
2020-05-15 11:36:40 -04:00
|
|
|
ARG 1 other
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1436 wasPressed ()Z
|
2021-05-13 02:10:36 -04:00
|
|
|
COMMENT {@return if the key was pressed}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>A key binding counts the number of times the key is pressed. This
|
|
|
|
COMMENT method "consumes" it and returns {@code true} as many times as the key
|
|
|
|
COMMENT is pressed.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>To consume all remaining key presses, while-loop idiom can be used:
|
|
|
|
COMMENT <pre>
|
|
|
|
COMMENT {@code
|
|
|
|
COMMENT while(keyBinding.wasPressed()) {
|
|
|
|
COMMENT // do your action
|
|
|
|
COMMENT }
|
|
|
|
COMMENT }
|
|
|
|
COMMENT </pre>
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #isPressed()
|
|
|
|
COMMENT @see <a href="https://bugs.mojang.com/browse/MC-118107">MC-118107</a>
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1437 unpressAll ()V
|
2020-05-15 11:36:40 -04:00
|
|
|
METHOD method_16007 getBoundKeyLocalizedText ()Lnet/minecraft/class_2561;
|
2019-10-30 12:15:03 -04:00
|
|
|
METHOD method_23481 setPressed (Z)V
|
|
|
|
ARG 1 pressed
|