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 fgj
-
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 static final Logger
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, int int2) 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
-
field_52126
- Mappings:
Namespace Name Mixin selector named field_52126
Lnet/minecraft/client/Mouse;field_52126:Lorg/slf4j/Logger;
intermediary field_52126
Lnet/minecraft/class_312;field_52126:Lorg/slf4j/Logger;
official a
Lfgj;a:Lorg/slf4j/Logger;
-
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 b
Lfgj;b:Lfgi;
-
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 c
Lfgj;c: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 d
Lfgj;d: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 e
Lfgj;e: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 f
Lfgj;f: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 g
Lfgj;g: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 h
Lfgj;h: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 i
Lfgj;i: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 j
Lfgj;j: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 k
Lfgj;k: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 l
Lfgj;l: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 m
Lfgj;m:Laze;
-
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 n
Lfgj;n:Laze;
-
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 o
Lfgj;o: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 p
Lfgj;p: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 q
Lfgj;q: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 r
Lfgj;r: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 s
Lfgj;s: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 t
Lfgj;t: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>
Lfgj;<init>(Lfgi;)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
Lfgj;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
Lfgj;a(JDD)V
-
onFilesDropped
- Mappings:
Namespace Name Mixin selector named onFilesDropped
Lnet/minecraft/client/Mouse;onFilesDropped(JLjava/util/List;I)V
intermediary method_29616
Lnet/minecraft/class_312;method_29616(JLjava/util/List;I)V
official a
Lfgj;a(JLjava/util/List;I)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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;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
Lfgj;k()V
-