Class RPKeyBindingHandler.KeyBindings

  • Enclosing class:
    RPKeyBindingHandler

    public static final class RPKeyBindingHandler.KeyBindings
    extends Object
    Contains key bindings added by RandomPatches.

    A separate class in necessary to prevent certain classes from being loaded too early.

    • Field Detail

      • SECONDARY_SPRINT

        public static final net.minecraft.client.options.KeyBinding SECONDARY_SPRINT
        The secondary sprint key binding.
      • DISMOUNT

        public static final net.minecraft.client.options.KeyBinding DISMOUNT
        The dismount key binding.
      • TOGGLE_NARRATOR

        public static final net.minecraft.client.options.KeyBinding TOGGLE_NARRATOR
        The narrator toggle key binding.
      • PAUSE

        public static final net.minecraft.client.options.KeyBinding PAUSE
        The pause key binding.
      • TOGGLE_GUI

        public static final net.minecraft.client.options.KeyBinding TOGGLE_GUI
        The GUI toggle key binding.
      • TOGGLE_DEBUG_INFO

        public static final net.minecraft.client.options.KeyBinding TOGGLE_DEBUG_INFO
        The debug key binding.
    • Method Detail

      • onKeyEvent

        public static void onKeyEvent​(int key,
                                      int action,
                                      int scanCode)
        Handles key events. This should only be called by KeyboardMixin.
        Parameters:
        key - the key.
        action - the action.
        scanCode - the scan code.