类 AbstractPressableButtonWidget

    • 构造器详细资料

      • AbstractPressableButtonWidget

        public AbstractPressableButtonWidget​(int x,
                                             int y,
                                             int width,
                                             int height,
                                             Text message)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldvu;<init>(IIIILon;)V
        intermediary <init> Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)V
        named <init> Lnet/minecraft/client/gui/widget/AbstractButtonWidget;<init>(IIIILnet/minecraft/text/Text;)V
    • 方法详细资料

      • onPress

        public abstract void onPress()
        Mappings:
        Namespace Name Mixin selector
        official b Ldvq;b()V
        intermediary method_25306 Lnet/minecraft/class_4264;method_25306()V
        named onPress Lnet/minecraft/client/gui/widget/AbstractPressableButtonWidget;onPress()V
      • onClick

        public void onClick​(double mouseX,
                            double mouseY)
        覆盖:
        onClick 在类中 AbstractButtonWidget
        Mappings:
        Namespace Name Mixin selector
        official a Ldvu;a(DD)V
        intermediary method_25348 Lnet/minecraft/class_339;method_25348(DD)V
        named onClick Lnet/minecraft/client/gui/widget/AbstractButtonWidget;onClick(DD)V
      • keyPressed

        public boolean keyPressed​(int keyCode,
                                  int scanCode,
                                  int modifiers)
        Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
        参数:
        keyCode - the named key code of the event as described in the GLFW class
        scanCode - the unique/platform-specific scan code of the keyboard input
        modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
        Mappings:
        Namespace Name Mixin selector
        official a Ldwv;a(III)Z
        intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
        named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z