Class Mouse

java.lang.Object
net.minecraft.client.Mouse

@Environment(CLIENT) public class Mouse extends Object
Mappings:
Namespace Name
official dys
intermediary net/minecraft/class_312
named net/minecraft/client/Mouse
  • Field Details

    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official a Ldys;a:Ldyr;
      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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;l:Lajq;
      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 Ldys;m:Lajq;
      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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;r:Z
      intermediary field_1783 Lnet/minecraft/class_312;field_1783:Z
      named cursorLocked Lnet/minecraft/client/Mouse;cursorLocked:Z
  • Constructor Details

    • Mouse

      public Mouse(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldys;<init>(Ldyr;)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
  • Method Details

    • onMouseButton

      private void onMouseButton(long window, int button, int action, int mods)
      Mappings:
      Namespace Name Mixin selector
      official a Ldys;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.
      Parameters:
      window - the window handle
      horizontal - the horizontal scroll distance
      vertical - the vertical scroll distance
      Mappings:
      Namespace Name Mixin selector
      official a Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;b()Z
      intermediary method_1608 Lnet/minecraft/class_312;method_1608()Z
      named wasLeftButtonClicked Lnet/minecraft/client/Mouse;wasLeftButtonClicked()Z
    • wasMiddleButtonClicked

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

      public boolean wasRightButtonClicked()
      Mappings:
      Namespace Name Mixin selector
      official d Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;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 Ldys;k()V
      intermediary method_30134 Lnet/minecraft/class_312;method_30134()V
      named setResolutionChanged Lnet/minecraft/client/Mouse;setResolutionChanged()V