类 Mouse


  • @Environment(CLIENT)
    public class Mouse
    extends Object
    Mappings:
    Namespace Name
    official dun
    intermediary net/minecraft/class_312
    named net/minecraft/client/Mouse
    • 字段详细资料

      • client

        private final MinecraftClient client
        Mappings:
        Namespace Name Mixin selector
        official a Ldun;a:Ldum;
        intermediary field_1779 Lnet/minecraft/class_312;field_1779:Lnet/minecraft/class_310;
        named client Lnet/minecraft/client/Mouse;client:Lnet/minecraft/client/MinecraftClient;
      • leftButtonClicked

        private boolean leftButtonClicked
        Mappings:
        Namespace Name Mixin selector
        official b Ldun;b:Z
        intermediary field_1791 Lnet/minecraft/class_312;field_1791:Z
        named leftButtonClicked Lnet/minecraft/client/Mouse;leftButtonClicked:Z
      • middleButtonClicked

        private boolean middleButtonClicked
        Mappings:
        Namespace Name Mixin selector
        official c Ldun;c:Z
        intermediary field_1790 Lnet/minecraft/class_312;field_1790:Z
        named middleButtonClicked Lnet/minecraft/client/Mouse;middleButtonClicked:Z
      • rightButtonClicked

        private boolean rightButtonClicked
        Mappings:
        Namespace Name Mixin selector
        official d Ldun;d:Z
        intermediary field_1788 Lnet/minecraft/class_312;field_1788:Z
        named rightButtonClicked Lnet/minecraft/client/Mouse;rightButtonClicked:Z
      • x

        private double x
        Mappings:
        Namespace Name Mixin selector
        official e Ldun;e:D
        intermediary field_1795 Lnet/minecraft/class_312;field_1795:D
        named x Lnet/minecraft/client/Mouse;x:D
      • y

        private double y
        Mappings:
        Namespace Name Mixin selector
        official f Ldun;f:D
        intermediary field_1794 Lnet/minecraft/class_312;field_1794:D
        named y Lnet/minecraft/client/Mouse;y:D
      • controlLeftTicks

        private int controlLeftTicks
        Mappings:
        Namespace Name Mixin selector
        official g Ldun;g:I
        intermediary field_1781 Lnet/minecraft/class_312;field_1781:I
        named controlLeftTicks Lnet/minecraft/client/Mouse;controlLeftTicks:I
      • activeButton

        private int activeButton
        Mappings:
        Namespace Name Mixin selector
        official h Ldun;h:I
        intermediary field_1780 Lnet/minecraft/class_312;field_1780:I
        named activeButton Lnet/minecraft/client/Mouse;activeButton:I
      • hasResolutionChanged

        private boolean hasResolutionChanged
        Mappings:
        Namespace Name Mixin selector
        official i Ldun;i:Z
        intermediary field_1784 Lnet/minecraft/class_312;field_1784:Z
        named hasResolutionChanged Lnet/minecraft/client/Mouse;hasResolutionChanged:Z
      • field_1796

        private int field_1796
        Mappings:
        Namespace Name Mixin selector
        official j Ldun;j:I
        intermediary field_1796 Lnet/minecraft/class_312;field_1796:I
        named field_1796 Lnet/minecraft/client/Mouse;field_1796:I
      • glfwTime

        private double glfwTime
        Mappings:
        Namespace Name Mixin selector
        official k Ldun;k:D
        intermediary field_1792 Lnet/minecraft/class_312;field_1792:D
        named glfwTime Lnet/minecraft/client/Mouse;glfwTime:D
      • cursorXSmoother

        private final SmoothUtil cursorXSmoother
        Mappings:
        Namespace Name Mixin selector
        official l Ldun;l:Lagw;
        intermediary field_1793 Lnet/minecraft/class_312;field_1793:Lnet/minecraft/class_3540;
        named cursorXSmoother Lnet/minecraft/client/Mouse;cursorXSmoother:Lnet/minecraft/client/util/SmoothUtil;
      • cursorYSmoother

        private final SmoothUtil cursorYSmoother
        Mappings:
        Namespace Name Mixin selector
        official m Ldun;m:Lagw;
        intermediary field_1782 Lnet/minecraft/class_312;field_1782:Lnet/minecraft/class_3540;
        named cursorYSmoother Lnet/minecraft/client/Mouse;cursorYSmoother:Lnet/minecraft/client/util/SmoothUtil;
      • cursorDeltaX

        private double cursorDeltaX
        Mappings:
        Namespace Name Mixin selector
        official n Ldun;n:D
        intermediary field_1789 Lnet/minecraft/class_312;field_1789:D
        named cursorDeltaX Lnet/minecraft/client/Mouse;cursorDeltaX:D
      • cursorDeltaY

        private double cursorDeltaY
        Mappings:
        Namespace Name Mixin selector
        official o Ldun;o:D
        intermediary field_1787 Lnet/minecraft/class_312;field_1787:D
        named cursorDeltaY Lnet/minecraft/client/Mouse;cursorDeltaY:D
      • eventDeltaWheel

        private double eventDeltaWheel
        Mappings:
        Namespace Name Mixin selector
        official p Ldun;p:D
        intermediary field_1786 Lnet/minecraft/class_312;field_1786:D
        named eventDeltaWheel Lnet/minecraft/client/Mouse;eventDeltaWheel:D
      • lastMouseUpdateTime

        private double lastMouseUpdateTime
        Mappings:
        Namespace Name Mixin selector
        official q Ldun;q:D
        intermediary field_1785 Lnet/minecraft/class_312;field_1785:D
        named lastMouseUpdateTime Lnet/minecraft/client/Mouse;lastMouseUpdateTime:D
      • cursorLocked

        private boolean cursorLocked
        Mappings:
        Namespace Name Mixin selector
        official r Ldun;r:Z
        intermediary field_1783 Lnet/minecraft/class_312;field_1783:Z
        named cursorLocked Lnet/minecraft/client/Mouse;cursorLocked:Z
    • 构造器详细资料

      • Mouse

        public Mouse​(MinecraftClient client)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldun;<init>(Ldum;)V
        intermediary <init> Lnet/minecraft/class_312;<init>(Lnet/minecraft/class_310;)V
        named <init> Lnet/minecraft/client/Mouse;<init>(Lnet/minecraft/client/MinecraftClient;)V
    • 方法详细资料

      • onMouseButton

        private void onMouseButton​(long window,
                                   int button,
                                   int action,
                                   int mods)
        Mappings:
        Namespace Name Mixin selector
        official a Ldun;a(JIII)V
        intermediary method_1601 Lnet/minecraft/class_312;method_1601(JIII)V
        named onMouseButton Lnet/minecraft/client/Mouse;onMouseButton(JIII)V
      • onMouseScroll

        private void onMouseScroll​(long window,
                                   double horizontal,
                                   double vertical)
        Called when a mouse is used to scroll.
        参数:
        window - the window handle
        horizontal - the horizontal scroll distance
        vertical - the vertical scroll distance
        Mappings:
        Namespace Name Mixin selector
        official a Ldun;a(JDD)V
        intermediary method_1598 Lnet/minecraft/class_312;method_1598(JDD)V
        named onMouseScroll Lnet/minecraft/client/Mouse;onMouseScroll(JDD)V
      • onFilesDropped

        private void onFilesDropped​(long window,
                                    List<Path> paths)
        Mappings:
        Namespace Name Mixin selector
        official a Ldun;a(JLjava/util/List;)V
        intermediary method_29616 Lnet/minecraft/class_312;method_29616(JLjava/util/List;)V
        named onFilesDropped Lnet/minecraft/client/Mouse;onFilesDropped(JLjava/util/List;)V
      • setup

        public void setup​(long window)
        Mappings:
        Namespace Name Mixin selector
        official a Ldun;a(J)V
        intermediary method_1607 Lnet/minecraft/class_312;method_1607(J)V
        named setup Lnet/minecraft/client/Mouse;setup(J)V
      • onCursorPos

        private void onCursorPos​(long window,
                                 double x,
                                 double y)
        Mappings:
        Namespace Name Mixin selector
        official b Ldun;b(JDD)V
        intermediary method_1600 Lnet/minecraft/class_312;method_1600(JDD)V
        named onCursorPos Lnet/minecraft/client/Mouse;onCursorPos(JDD)V
      • updateMouse

        public void updateMouse()
        Mappings:
        Namespace Name Mixin selector
        official a Ldun;a()V
        intermediary method_1606 Lnet/minecraft/class_312;method_1606()V
        named updateMouse Lnet/minecraft/client/Mouse;updateMouse()V
      • wasLeftButtonClicked

        public boolean wasLeftButtonClicked()
        Mappings:
        Namespace Name Mixin selector
        official b Ldun;b()Z
        intermediary method_1608 Lnet/minecraft/class_312;method_1608()Z
        named wasLeftButtonClicked Lnet/minecraft/client/Mouse;wasLeftButtonClicked()Z
      • method_35707

        public boolean method_35707()
        Mappings:
        Namespace Name Mixin selector
        official c Ldun;c()Z
        intermediary method_35707 Lnet/minecraft/class_312;method_35707()Z
        named method_35707 Lnet/minecraft/client/Mouse;method_35707()Z
      • wasRightButtonClicked

        public boolean wasRightButtonClicked()
        Mappings:
        Namespace Name Mixin selector
        official d Ldun;d()Z
        intermediary method_1609 Lnet/minecraft/class_312;method_1609()Z
        named wasRightButtonClicked Lnet/minecraft/client/Mouse;wasRightButtonClicked()Z
      • getX

        public double getX()
        Mappings:
        Namespace Name Mixin selector
        official e Ldun;e()D
        intermediary method_1603 Lnet/minecraft/class_312;method_1603()D
        named getX Lnet/minecraft/client/Mouse;getX()D
      • getY

        public double getY()
        Mappings:
        Namespace Name Mixin selector
        official f Ldun;f()D
        intermediary method_1604 Lnet/minecraft/class_312;method_1604()D
        named getY Lnet/minecraft/client/Mouse;getY()D
      • onResolutionChanged

        public void onResolutionChanged()
        Mappings:
        Namespace Name Mixin selector
        official g Ldun;g()V
        intermediary method_1599 Lnet/minecraft/class_312;method_1599()V
        named onResolutionChanged Lnet/minecraft/client/Mouse;onResolutionChanged()V
      • isCursorLocked

        public boolean isCursorLocked()
        Mappings:
        Namespace Name Mixin selector
        official h Ldun;h()Z
        intermediary method_1613 Lnet/minecraft/class_312;method_1613()Z
        named isCursorLocked Lnet/minecraft/client/Mouse;isCursorLocked()Z
      • lockCursor

        public void lockCursor()
        Mappings:
        Namespace Name Mixin selector
        official i Ldun;i()V
        intermediary method_1612 Lnet/minecraft/class_312;method_1612()V
        named lockCursor Lnet/minecraft/client/Mouse;lockCursor()V
      • unlockCursor

        public void unlockCursor()
        Mappings:
        Namespace Name Mixin selector
        official j Ldun;j()V
        intermediary method_1610 Lnet/minecraft/class_312;method_1610()V
        named unlockCursor Lnet/minecraft/client/Mouse;unlockCursor()V
      • setResolutionChanged

        public void setResolutionChanged()
        Mappings:
        Namespace Name Mixin selector
        official k Ldun;k()V
        intermediary method_30134 Lnet/minecraft/class_312;method_30134()V
        named setResolutionChanged Lnet/minecraft/client/Mouse;setResolutionChanged()V