类 SliderWidget

    • 字段详细资料

      • value

        protected double value
        Mappings:
        Namespace Name Mixin selector
        official b Ldvt;b:D
        intermediary field_22753 Lnet/minecraft/class_357;field_22753:D
        named value Lnet/minecraft/client/gui/widget/SliderWidget;value:D
    • 构造器详细资料

      • SliderWidget

        public SliderWidget​(int x,
                            int y,
                            int width,
                            int height,
                            Text text,
                            double value)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldvt;<init>(IIIILon;D)V
        intermediary <init> Lnet/minecraft/class_357;<init>(IIIILnet/minecraft/class_2561;D)V
        named <init> Lnet/minecraft/client/gui/widget/SliderWidget;<init>(IIIILnet/minecraft/text/Text;D)V
    • 方法详细资料

      • getYImage

        protected int getYImage​(boolean hovered)
        覆盖:
        getYImage 在类中 AbstractButtonWidget
        Mappings:
        Namespace Name Mixin selector
        official a Ldvu;a(Z)I
        intermediary method_25356 Lnet/minecraft/class_339;method_25356(Z)I
        named getYImage Lnet/minecraft/client/gui/widget/AbstractButtonWidget;getYImage(Z)I
      • getNarrationMessage

        protected MutableText getNarrationMessage()
        覆盖:
        getNarrationMessage 在类中 AbstractButtonWidget
        Mappings:
        Namespace Name Mixin selector
        official c Ldvu;c()Lot;
        intermediary method_25360 Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
        named getNarrationMessage Lnet/minecraft/client/gui/widget/AbstractButtonWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
      • renderBg

        protected void renderBg​(MatrixStack matrices,
                                MinecraftClient client,
                                int mouseX,
                                int mouseY)
        覆盖:
        renderBg 在类中 AbstractButtonWidget
        Mappings:
        Namespace Name Mixin selector
        official a Ldvu;a(Ldpi;Ldum;II)V
        intermediary method_25353 Lnet/minecraft/class_339;method_25353(Lnet/minecraft/class_4587;Lnet/minecraft/class_310;II)V
        named renderBg Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderBg(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/MinecraftClient;II)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
      • setValueFromMouse

        private void setValueFromMouse​(double mouseX)
        Mappings:
        Namespace Name Mixin selector
        official a Ldvt;a(D)V
        intermediary method_25345 Lnet/minecraft/class_357;method_25345(D)V
        named setValueFromMouse Lnet/minecraft/client/gui/widget/SliderWidget;setValueFromMouse(D)V
      • setValue

        private void setValue​(double mouseX)
        Mappings:
        Namespace Name Mixin selector
        official b Ldvt;b(D)V
        intermediary method_25347 Lnet/minecraft/class_357;method_25347(D)V
        named setValue Lnet/minecraft/client/gui/widget/SliderWidget;setValue(D)V
      • onDrag

        protected void onDrag​(double mouseX,
                              double mouseY,
                              double deltaX,
                              double deltaY)
        覆盖:
        onDrag 在类中 AbstractButtonWidget
        Mappings:
        Namespace Name Mixin selector
        official a Ldvu;a(DDDD)V
        intermediary method_25349 Lnet/minecraft/class_339;method_25349(DDDD)V
        named onDrag Lnet/minecraft/client/gui/widget/AbstractButtonWidget;onDrag(DDDD)V
      • playDownSound

        public void playDownSound​(SoundManager soundManager)
        覆盖:
        playDownSound 在类中 AbstractButtonWidget
        Mappings:
        Namespace Name Mixin selector
        official a Ldvu;a(Lezu;)V
        intermediary method_25354 Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V
        named playDownSound Lnet/minecraft/client/gui/widget/AbstractButtonWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V
      • onRelease

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

        protected abstract void updateMessage()
        Mappings:
        Namespace Name Mixin selector
        official b Ldvt;b()V
        intermediary method_25346 Lnet/minecraft/class_357;method_25346()V
        named updateMessage Lnet/minecraft/client/gui/widget/SliderWidget;updateMessage()V
      • applyValue

        protected abstract void applyValue()
        Mappings:
        Namespace Name Mixin selector
        official a Ldvt;a()V
        intermediary method_25344 Lnet/minecraft/class_357;method_25344()V
        named applyValue Lnet/minecraft/client/gui/widget/SliderWidget;applyValue()V