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 fmg
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final MinecraftClient
private int
private double
private double
private boolean
private final Smoother
private final Smoother
private int
private double
private boolean
private double
private boolean
private static final Logger
private boolean
private boolean
private final Scroller
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 invalidFilesCount) 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
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/Mouse;LOGGER:Lorg/slf4j/Logger;
intermediary field_52126
Lnet/minecraft/class_312;field_52126:Lorg/slf4j/Logger;
official a
Lfmg;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
Lfmg;b:Lfmf;
-
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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;g:D
-
controlLeftClicks
private int controlLeftClicks- Mappings:
Namespace Name Mixin selector named controlLeftClicks
Lnet/minecraft/client/Mouse;controlLeftClicks:I
intermediary field_1781
Lnet/minecraft/class_312;field_1781:I
official h
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;l:D
-
cursorXSmoother
- Mappings:
Namespace Name Mixin selector named cursorXSmoother
Lnet/minecraft/client/Mouse;cursorXSmoother:Lnet/minecraft/util/math/Smoother;
intermediary field_1793
Lnet/minecraft/class_312;field_1793:Lnet/minecraft/class_3540;
official m
Lfmg;m:Lbav;
-
cursorYSmoother
- Mappings:
Namespace Name Mixin selector named cursorYSmoother
Lnet/minecraft/client/Mouse;cursorYSmoother:Lnet/minecraft/util/math/Smoother;
intermediary field_1782
Lnet/minecraft/class_312;field_1782:Lnet/minecraft/class_3540;
official n
Lfmg;n:Lbav;
-
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
Lfmg;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
Lfmg;p:D
-
scroller
- Mappings:
Namespace Name Mixin selector named scroller
Lnet/minecraft/client/Mouse;scroller:Lnet/minecraft/client/input/Scroller;
intermediary field_52757
Lnet/minecraft/class_312;field_52757:Lnet/minecraft/class_9928;
official q
Lfmg;q:Lfmo;
-
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
Lfmg;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
Lfmg;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>
Lfmg;<init>(Lfmf;)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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;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
Lfmg;k()V
-