Package net.minecraft.client
Class Mouse
java.lang.Object
net.minecraft.client.Mouse
- Mappings:
- Namespace - Name - official - eno- intermediary - net/minecraft/class_312- named - net/minecraft/client/Mouse
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final SmoothUtilprivate final SmoothUtilprivate doubleprivate intprivate doubleprivate booleanprivate doubleprivate booleanprivate booleanprivate booleanprivate doubleprivate double
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetX()doublegetY()booleanvoidprivate voidonCursorPos(long window, double x, double y) private voidonFilesDropped(long window, List<Path> paths) private voidonMouseButton(long window, int button, int action, int mods) private voidonMouseScroll(long window, double horizontal, double vertical) Called when a mouse is used to scroll.voidvoidvoidsetup(long window) voidvoidbooleanbooleanboolean
- 
Field Details- 
client- Mappings:
- Namespace - Name - Mixin selector - official - a- Leno;a:Lenn;- intermediary - field_1779- Lnet/minecraft/class_312;field_1779:Lnet/minecraft/class_310;- named - client- Lnet/minecraft/client/Mouse;client:Lnet/minecraft/client/MinecraftClient;
 
- 
leftButtonClickedprivate boolean leftButtonClicked- Mappings:
- Namespace - Name - Mixin selector - official - b- Leno;b:Z- intermediary - field_1791- Lnet/minecraft/class_312;field_1791:Z- named - leftButtonClicked- Lnet/minecraft/client/Mouse;leftButtonClicked:Z
 
- 
middleButtonClickedprivate boolean middleButtonClicked- Mappings:
- Namespace - Name - Mixin selector - official - c- Leno;c:Z- intermediary - field_1790- Lnet/minecraft/class_312;field_1790:Z- named - middleButtonClicked- Lnet/minecraft/client/Mouse;middleButtonClicked:Z
 
- 
rightButtonClickedprivate boolean rightButtonClicked- Mappings:
- Namespace - Name - Mixin selector - official - d- Leno;d:Z- intermediary - field_1788- Lnet/minecraft/class_312;field_1788:Z- named - rightButtonClicked- Lnet/minecraft/client/Mouse;rightButtonClicked:Z
 
- 
xprivate double x- Mappings:
- Namespace - Name - Mixin selector - official - e- Leno;e:D- intermediary - field_1795- Lnet/minecraft/class_312;field_1795:D- named - x- Lnet/minecraft/client/Mouse;x:D
 
- 
yprivate double y- Mappings:
- Namespace - Name - Mixin selector - official - f- Leno;f:D- intermediary - field_1794- Lnet/minecraft/class_312;field_1794:D- named - y- Lnet/minecraft/client/Mouse;y:D
 
- 
controlLeftTicksprivate int controlLeftTicks- Mappings:
- Namespace - Name - Mixin selector - official - g- Leno;g:I- intermediary - field_1781- Lnet/minecraft/class_312;field_1781:I- named - controlLeftTicks- Lnet/minecraft/client/Mouse;controlLeftTicks:I
 
- 
activeButtonprivate int activeButton- Mappings:
- Namespace - Name - Mixin selector - official - h- Leno;h:I- intermediary - field_1780- Lnet/minecraft/class_312;field_1780:I- named - activeButton- Lnet/minecraft/client/Mouse;activeButton:I
 
- 
hasResolutionChangedprivate boolean hasResolutionChanged- Mappings:
- Namespace - Name - Mixin selector - official - i- Leno;i:Z- intermediary - field_1784- Lnet/minecraft/class_312;field_1784:Z- named - hasResolutionChanged- Lnet/minecraft/client/Mouse;hasResolutionChanged:Z
 
- 
field_1796private int field_1796- Mappings:
- Namespace - Name - Mixin selector - official - j- Leno;j:I- intermediary - field_1796- Lnet/minecraft/class_312;field_1796:I- named - field_1796- Lnet/minecraft/client/Mouse;field_1796:I
 
- 
glfwTimeprivate double glfwTime- Mappings:
- Namespace - Name - Mixin selector - official - k- Leno;k:D- intermediary - field_1792- Lnet/minecraft/class_312;field_1792:D- named - glfwTime- Lnet/minecraft/client/Mouse;glfwTime:D
 
- 
cursorXSmoother- Mappings:
- Namespace - Name - Mixin selector - official - l- Leno;l:Lapn;- 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- Mappings:
- Namespace - Name - Mixin selector - official - m- Leno;m:Lapn;- 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;
 
- 
cursorDeltaXprivate double cursorDeltaX- Mappings:
- Namespace - Name - Mixin selector - official - n- Leno;n:D- intermediary - field_1789- Lnet/minecraft/class_312;field_1789:D- named - cursorDeltaX- Lnet/minecraft/client/Mouse;cursorDeltaX:D
 
- 
cursorDeltaYprivate double cursorDeltaY- Mappings:
- Namespace - Name - Mixin selector - official - o- Leno;o:D- intermediary - field_1787- Lnet/minecraft/class_312;field_1787:D- named - cursorDeltaY- Lnet/minecraft/client/Mouse;cursorDeltaY:D
 
- 
eventDeltaWheelprivate double eventDeltaWheel- Mappings:
- Namespace - Name - Mixin selector - official - p- Leno;p:D- intermediary - field_1786- Lnet/minecraft/class_312;field_1786:D- named - eventDeltaWheel- Lnet/minecraft/client/Mouse;eventDeltaWheel:D
 
- 
lastMouseUpdateTimeprivate double lastMouseUpdateTime- Mappings:
- Namespace - Name - Mixin selector - official - q- Leno;q:D- intermediary - field_1785- Lnet/minecraft/class_312;field_1785:D- named - lastMouseUpdateTime- Lnet/minecraft/client/Mouse;lastMouseUpdateTime:D
 
- 
cursorLockedprivate boolean cursorLocked- Mappings:
- Namespace - Name - Mixin selector - official - r- Leno;r:Z- intermediary - field_1783- Lnet/minecraft/class_312;field_1783:Z- named - cursorLocked- Lnet/minecraft/client/Mouse;cursorLocked:Z
 
 
- 
- 
Constructor Details- 
Mouse- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Leno;<init>(Lenn;)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- 
onMouseButtonprivate void onMouseButton(long window, int button, int action, int mods) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leno;a(JIII)V- intermediary - method_1601- Lnet/minecraft/class_312;method_1601(JIII)V- named - onMouseButton- Lnet/minecraft/client/Mouse;onMouseButton(JIII)V
 
- 
onMouseScrollprivate 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- Leno;a(JDD)V- intermediary - method_1598- Lnet/minecraft/class_312;method_1598(JDD)V- named - onMouseScroll- Lnet/minecraft/client/Mouse;onMouseScroll(JDD)V
 
- 
onFilesDropped- Mappings:
- Namespace - Name - Mixin selector - official - a- Leno;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
 
- 
setuppublic void setup(long window) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leno;a(J)V- intermediary - method_1607- Lnet/minecraft/class_312;method_1607(J)V- named - setup- Lnet/minecraft/client/Mouse;setup(J)V
 
- 
onCursorPosprivate void onCursorPos(long window, double x, double y) - Mappings:
- Namespace - Name - Mixin selector - official - b- Leno;b(JDD)V- intermediary - method_1600- Lnet/minecraft/class_312;method_1600(JDD)V- named - onCursorPos- Lnet/minecraft/client/Mouse;onCursorPos(JDD)V
 
- 
updateMousepublic void updateMouse()- Mappings:
- Namespace - Name - Mixin selector - official - a- Leno;a()V- intermediary - method_1606- Lnet/minecraft/class_312;method_1606()V- named - updateMouse- Lnet/minecraft/client/Mouse;updateMouse()V
 
- 
wasLeftButtonClickedpublic boolean wasLeftButtonClicked()- Mappings:
- Namespace - Name - Mixin selector - official - b- Leno;b()Z- intermediary - method_1608- Lnet/minecraft/class_312;method_1608()Z- named - wasLeftButtonClicked- Lnet/minecraft/client/Mouse;wasLeftButtonClicked()Z
 
- 
wasMiddleButtonClickedpublic boolean wasMiddleButtonClicked()- Mappings:
- Namespace - Name - Mixin selector - official - c- Leno;c()Z- intermediary - method_35707- Lnet/minecraft/class_312;method_35707()Z- named - wasMiddleButtonClicked- Lnet/minecraft/client/Mouse;wasMiddleButtonClicked()Z
 
- 
wasRightButtonClickedpublic boolean wasRightButtonClicked()- Mappings:
- Namespace - Name - Mixin selector - official - d- Leno;d()Z- intermediary - method_1609- Lnet/minecraft/class_312;method_1609()Z- named - wasRightButtonClicked- Lnet/minecraft/client/Mouse;wasRightButtonClicked()Z
 
- 
getXpublic double getX()- Mappings:
- Namespace - Name - Mixin selector - official - e- Leno;e()D- intermediary - method_1603- Lnet/minecraft/class_312;method_1603()D- named - getX- Lnet/minecraft/client/Mouse;getX()D
 
- 
getYpublic double getY()- Mappings:
- Namespace - Name - Mixin selector - official - f- Leno;f()D- intermediary - method_1604- Lnet/minecraft/class_312;method_1604()D- named - getY- Lnet/minecraft/client/Mouse;getY()D
 
- 
onResolutionChangedpublic void onResolutionChanged()- Mappings:
- Namespace - Name - Mixin selector - official - g- Leno;g()V- intermediary - method_1599- Lnet/minecraft/class_312;method_1599()V- named - onResolutionChanged- Lnet/minecraft/client/Mouse;onResolutionChanged()V
 
- 
isCursorLockedpublic boolean isCursorLocked()- Mappings:
- Namespace - Name - Mixin selector - official - h- Leno;h()Z- intermediary - method_1613- Lnet/minecraft/class_312;method_1613()Z- named - isCursorLocked- Lnet/minecraft/client/Mouse;isCursorLocked()Z
 
- 
lockCursorpublic void lockCursor()- Mappings:
- Namespace - Name - Mixin selector - official - i- Leno;i()V- intermediary - method_1612- Lnet/minecraft/class_312;method_1612()V- named - lockCursor- Lnet/minecraft/client/Mouse;lockCursor()V
 
- 
unlockCursorpublic void unlockCursor()- Mappings:
- Namespace - Name - Mixin selector - official - j- Leno;j()V- intermediary - method_1610- Lnet/minecraft/class_312;method_1610()V- named - unlockCursor- Lnet/minecraft/client/Mouse;unlockCursor()V
 
- 
setResolutionChangedpublic void setResolutionChanged()- Mappings:
- Namespace - Name - Mixin selector - official - k- Leno;k()V- intermediary - method_30134- Lnet/minecraft/class_312;method_30134()V- named - setResolutionChanged- Lnet/minecraft/client/Mouse;setResolutionChanged()V
 
 
-