Package net.minecraft.client
Class Mouse
java.lang.Object
net.minecraft.client.Mouse
- Mappings:
Namespace Name named net/minecraft/client/Mouse
intermediary net/minecraft/class_312
official ffi
-
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
tick()
void
private void
updateMouse
(double timeDelta) boolean
boolean
boolean
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/Mouse;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_1779
Lnet/minecraft/class_312;field_1779:Lnet/minecraft/class_310;
official a
Lffi;a:Lffh;
-
leftButtonClicked
private boolean leftButtonClicked- Mappings:
Namespace Name Mixin selector named leftButtonClicked
Lnet/minecraft/client/Mouse;leftButtonClicked:Z
intermediary field_1791
Lnet/minecraft/class_312;field_1791:Z
official b
Lffi;b:Z
-
middleButtonClicked
private boolean middleButtonClicked- Mappings:
Namespace Name Mixin selector named middleButtonClicked
Lnet/minecraft/client/Mouse;middleButtonClicked:Z
intermediary field_1790
Lnet/minecraft/class_312;field_1790:Z
official c
Lffi;c:Z
-
rightButtonClicked
private boolean rightButtonClicked- Mappings:
Namespace Name Mixin selector named rightButtonClicked
Lnet/minecraft/client/Mouse;rightButtonClicked:Z
intermediary field_1788
Lnet/minecraft/class_312;field_1788:Z
official d
Lffi;d:Z
-
x
private double x- Mappings:
Namespace Name Mixin selector named x
Lnet/minecraft/client/Mouse;x:D
intermediary field_1795
Lnet/minecraft/class_312;field_1795:D
official e
Lffi;e:D
-
y
private double y- Mappings:
Namespace Name Mixin selector named y
Lnet/minecraft/client/Mouse;y:D
intermediary field_1794
Lnet/minecraft/class_312;field_1794:D
official f
Lffi;f:D
-
controlLeftTicks
private int controlLeftTicks- Mappings:
Namespace Name Mixin selector named controlLeftTicks
Lnet/minecraft/client/Mouse;controlLeftTicks:I
intermediary field_1781
Lnet/minecraft/class_312;field_1781:I
official g
Lffi;g:I
-
activeButton
private int activeButton- Mappings:
Namespace Name Mixin selector named activeButton
Lnet/minecraft/client/Mouse;activeButton:I
intermediary field_1780
Lnet/minecraft/class_312;field_1780:I
official h
Lffi;h:I
-
hasResolutionChanged
private boolean hasResolutionChanged- Mappings:
Namespace Name Mixin selector named hasResolutionChanged
Lnet/minecraft/client/Mouse;hasResolutionChanged:Z
intermediary field_1784
Lnet/minecraft/class_312;field_1784:Z
official i
Lffi;i:Z
-
field_1796
private int field_1796- Mappings:
Namespace Name Mixin selector named field_1796
Lnet/minecraft/client/Mouse;field_1796:I
intermediary field_1796
Lnet/minecraft/class_312;field_1796:I
official j
Lffi;j:I
-
glfwTime
private double glfwTime- Mappings:
Namespace Name Mixin selector named glfwTime
Lnet/minecraft/client/Mouse;glfwTime:D
intermediary field_1792
Lnet/minecraft/class_312;field_1792:D
official k
Lffi;k:D
-
cursorXSmoother
- Mappings:
Namespace Name Mixin selector named cursorXSmoother
Lnet/minecraft/client/Mouse;cursorXSmoother:Lnet/minecraft/client/util/SmoothUtil;
intermediary field_1793
Lnet/minecraft/class_312;field_1793:Lnet/minecraft/class_3540;
official l
Lffi;l:Lazq;
-
cursorYSmoother
- Mappings:
Namespace Name Mixin selector named cursorYSmoother
Lnet/minecraft/client/Mouse;cursorYSmoother:Lnet/minecraft/client/util/SmoothUtil;
intermediary field_1782
Lnet/minecraft/class_312;field_1782:Lnet/minecraft/class_3540;
official m
Lffi;m:Lazq;
-
cursorDeltaX
private double cursorDeltaX- Mappings:
Namespace Name Mixin selector named cursorDeltaX
Lnet/minecraft/client/Mouse;cursorDeltaX:D
intermediary field_1789
Lnet/minecraft/class_312;field_1789:D
official n
Lffi;n:D
-
cursorDeltaY
private double cursorDeltaY- Mappings:
Namespace Name Mixin selector named cursorDeltaY
Lnet/minecraft/client/Mouse;cursorDeltaY:D
intermediary field_1787
Lnet/minecraft/class_312;field_1787:D
official o
Lffi;o:D
-
eventDeltaHorizontalWheel
private double eventDeltaHorizontalWheel- Mappings:
Namespace Name Mixin selector named eventDeltaHorizontalWheel
Lnet/minecraft/client/Mouse;eventDeltaHorizontalWheel:D
intermediary field_45296
Lnet/minecraft/class_312;field_45296:D
official p
Lffi;p:D
-
eventDeltaVerticalWheel
private double eventDeltaVerticalWheel- Mappings:
Namespace Name Mixin selector named eventDeltaVerticalWheel
Lnet/minecraft/client/Mouse;eventDeltaVerticalWheel:D
intermediary field_45297
Lnet/minecraft/class_312;field_45297:D
official q
Lffi;q:D
-
lastTickTime
private double lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTime
Lnet/minecraft/client/Mouse;lastTickTime:D
intermediary field_47842
Lnet/minecraft/class_312;field_47842:D
official r
Lffi;r:D
-
cursorLocked
private boolean cursorLocked- Mappings:
Namespace Name Mixin selector named cursorLocked
Lnet/minecraft/client/Mouse;cursorLocked:Z
intermediary field_1783
Lnet/minecraft/class_312;field_1783:Z
official s
Lffi;s:Z
-
-
Constructor Details
-
Mouse
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/Mouse;<init>(Lnet/minecraft/client/MinecraftClient;)V
intermediary <init>
Lnet/minecraft/class_312;<init>(Lnet/minecraft/class_310;)V
official <init>
Lffi;<init>(Lffh;)V
-
-
Method Details
-
onMouseButton
private void onMouseButton(long window, int button, int action, int mods) - Mappings:
Namespace Name Mixin selector named onMouseButton
Lnet/minecraft/client/Mouse;onMouseButton(JIII)V
intermediary method_1601
Lnet/minecraft/class_312;method_1601(JIII)V
official a
Lffi;a(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 named onMouseScroll
Lnet/minecraft/client/Mouse;onMouseScroll(JDD)V
intermediary method_1598
Lnet/minecraft/class_312;method_1598(JDD)V
official a
Lffi;a(JDD)V
-
onFilesDropped
- Mappings:
Namespace Name Mixin selector named onFilesDropped
Lnet/minecraft/client/Mouse;onFilesDropped(JLjava/util/List;)V
intermediary method_29616
Lnet/minecraft/class_312;method_29616(JLjava/util/List;)V
official a
Lffi;a(JLjava/util/List;)V
-
setup
public void setup(long window) - Mappings:
Namespace Name Mixin selector named setup
Lnet/minecraft/client/Mouse;setup(J)V
intermediary method_1607
Lnet/minecraft/class_312;method_1607(J)V
official a
Lffi;a(J)V
-
onCursorPos
private void onCursorPos(long window, double x, double y) - Mappings:
Namespace Name Mixin selector named onCursorPos
Lnet/minecraft/client/Mouse;onCursorPos(JDD)V
intermediary method_1600
Lnet/minecraft/class_312;method_1600(JDD)V
official b
Lffi;b(JDD)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/client/Mouse;tick()V
intermediary method_55793
Lnet/minecraft/class_312;method_55793()V
official a
Lffi;a()V
-
updateMouse
private void updateMouse(double timeDelta) - Mappings:
Namespace Name Mixin selector named updateMouse
Lnet/minecraft/client/Mouse;updateMouse(D)V
intermediary method_1606
Lnet/minecraft/class_312;method_1606(D)V
official a
Lffi;a(D)V
-
wasLeftButtonClicked
public boolean wasLeftButtonClicked()- Mappings:
Namespace Name Mixin selector named wasLeftButtonClicked
Lnet/minecraft/client/Mouse;wasLeftButtonClicked()Z
intermediary method_1608
Lnet/minecraft/class_312;method_1608()Z
official b
Lffi;b()Z
-
wasMiddleButtonClicked
public boolean wasMiddleButtonClicked()- Mappings:
Namespace Name Mixin selector named wasMiddleButtonClicked
Lnet/minecraft/client/Mouse;wasMiddleButtonClicked()Z
intermediary method_35707
Lnet/minecraft/class_312;method_35707()Z
official c
Lffi;c()Z
-
wasRightButtonClicked
public boolean wasRightButtonClicked()- Mappings:
Namespace Name Mixin selector named wasRightButtonClicked
Lnet/minecraft/client/Mouse;wasRightButtonClicked()Z
intermediary method_1609
Lnet/minecraft/class_312;method_1609()Z
official d
Lffi;d()Z
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector named getX
Lnet/minecraft/client/Mouse;getX()D
intermediary method_1603
Lnet/minecraft/class_312;method_1603()D
official e
Lffi;e()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector named getY
Lnet/minecraft/client/Mouse;getY()D
intermediary method_1604
Lnet/minecraft/class_312;method_1604()D
official f
Lffi;f()D
-
onResolutionChanged
public void onResolutionChanged()- Mappings:
Namespace Name Mixin selector named onResolutionChanged
Lnet/minecraft/client/Mouse;onResolutionChanged()V
intermediary method_1599
Lnet/minecraft/class_312;method_1599()V
official g
Lffi;g()V
-
isCursorLocked
public boolean isCursorLocked()- Mappings:
Namespace Name Mixin selector named isCursorLocked
Lnet/minecraft/client/Mouse;isCursorLocked()Z
intermediary method_1613
Lnet/minecraft/class_312;method_1613()Z
official h
Lffi;h()Z
-
lockCursor
public void lockCursor()- Mappings:
Namespace Name Mixin selector named lockCursor
Lnet/minecraft/client/Mouse;lockCursor()V
intermediary method_1612
Lnet/minecraft/class_312;method_1612()V
official i
Lffi;i()V
-
unlockCursor
public void unlockCursor()- Mappings:
Namespace Name Mixin selector named unlockCursor
Lnet/minecraft/client/Mouse;unlockCursor()V
intermediary method_1610
Lnet/minecraft/class_312;method_1610()V
official j
Lffi;j()V
-
setResolutionChanged
public void setResolutionChanged()- Mappings:
Namespace Name Mixin selector named setResolutionChanged
Lnet/minecraft/client/Mouse;setResolutionChanged()V
intermediary method_30134
Lnet/minecraft/class_312;method_30134()V
official k
Lffi;k()V
-