Package net.minecraft.client
Class Mouse
java.lang.Object
net.minecraft.client.Mouse
- Mappings:
Namespace Name official eqw
intermediary net/minecraft/class_312
named net/minecraft/client/Mouse
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final MinecraftClient
private int
private double
private double
private boolean
private final SmoothUtil
private final SmoothUtil
private double
private double
private int
private double
private boolean
private double
private boolean
private boolean
private boolean
private double
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
double
getY()
boolean
void
private void
onCursorPos
(long window, double x, double y) private void
onFilesDropped
(long window, List<Path> paths) private void
onMouseButton
(long window, int button, int action, int mods) private void
onMouseScroll
(long window, double horizontal, double vertical) Called when a mouse is used to scroll.void
void
void
setup
(long window) void
void
boolean
boolean
boolean
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official a
Leqw;a:Leqv;
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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;l:Lasl;
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
Leqw;m:Lasl;
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
Leqw;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
Leqw;o:D
intermediary field_1787
Lnet/minecraft/class_312;field_1787:D
named cursorDeltaY
Lnet/minecraft/client/Mouse;cursorDeltaY:D
-
eventDeltaHorizontalWheel
private double eventDeltaHorizontalWheel- Mappings:
Namespace Name Mixin selector official p
Leqw;p:D
intermediary field_45296
Lnet/minecraft/class_312;field_45296:D
named eventDeltaHorizontalWheel
Lnet/minecraft/client/Mouse;eventDeltaHorizontalWheel:D
-
eventDeltaVerticalWheel
private double eventDeltaVerticalWheel- Mappings:
Namespace Name Mixin selector official q
Leqw;q:D
intermediary field_45297
Lnet/minecraft/class_312;field_45297:D
named eventDeltaVerticalWheel
Lnet/minecraft/client/Mouse;eventDeltaVerticalWheel:D
-
lastMouseUpdateTime
private double lastMouseUpdateTime- Mappings:
Namespace Name Mixin selector official r
Leqw;r: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 s
Leqw;s: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>
Leqw;<init>(Leqv;)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
Leqw;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 handlehorizontal
- the horizontal scroll distancevertical
- the vertical scroll distance- Mappings:
Namespace Name Mixin selector official a
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;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
Leqw;k()V
intermediary method_30134
Lnet/minecraft/class_312;method_30134()V
named setResolutionChanged
Lnet/minecraft/client/Mouse;setResolutionChanged()V
-