Package net.minecraft.client
Class Mouse
java.lang.Object
net.minecraft.client.Mouse
- Mappings:
Namespace Name named net/minecraft/client/Mouseintermediary net/minecraft/class_312official fgp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final Smootherprivate final Smootherprivate doubleprivate doubleprivate intprivate doubleprivate booleanprivate doubleprivate booleanprivate static final Loggerprivate booleanprivate booleanprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetX()doublegetY()booleanvoidprivate voidonCursorPos(long window, double x, double y) private voidonFilesDropped(long window, List<Path> paths, int invalidFilesCount) 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) voidtick()voidprivate voidupdateMouse(double timeDelta) booleanbooleanboolean
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/Mouse;LOGGER:Lorg/slf4j/Logger;intermediary field_52126Lnet/minecraft/class_312;field_52126:Lorg/slf4j/Logger;official aLfgp;a:Lorg/slf4j/Logger;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/Mouse;client:Lnet/minecraft/client/MinecraftClient;intermediary field_1779Lnet/minecraft/class_312;field_1779:Lnet/minecraft/class_310;official bLfgp;b:Lfgo;
-
leftButtonClicked
private boolean leftButtonClicked- Mappings:
Namespace Name Mixin selector named leftButtonClickedLnet/minecraft/client/Mouse;leftButtonClicked:Zintermediary field_1791Lnet/minecraft/class_312;field_1791:Zofficial cLfgp;c:Z
-
middleButtonClicked
private boolean middleButtonClicked- Mappings:
Namespace Name Mixin selector named middleButtonClickedLnet/minecraft/client/Mouse;middleButtonClicked:Zintermediary field_1790Lnet/minecraft/class_312;field_1790:Zofficial dLfgp;d:Z
-
rightButtonClicked
private boolean rightButtonClicked- Mappings:
Namespace Name Mixin selector named rightButtonClickedLnet/minecraft/client/Mouse;rightButtonClicked:Zintermediary field_1788Lnet/minecraft/class_312;field_1788:Zofficial eLfgp;e:Z
-
x
private double x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/client/Mouse;x:Dintermediary field_1795Lnet/minecraft/class_312;field_1795:Dofficial fLfgp;f:D
-
y
private double y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/client/Mouse;y:Dintermediary field_1794Lnet/minecraft/class_312;field_1794:Dofficial gLfgp;g:D
-
controlLeftClicks
private int controlLeftClicks- Mappings:
Namespace Name Mixin selector named controlLeftClicksLnet/minecraft/client/Mouse;controlLeftClicks:Iintermediary field_1781Lnet/minecraft/class_312;field_1781:Iofficial hLfgp;h:I
-
activeButton
private int activeButton- Mappings:
Namespace Name Mixin selector named activeButtonLnet/minecraft/client/Mouse;activeButton:Iintermediary field_1780Lnet/minecraft/class_312;field_1780:Iofficial iLfgp;i:I
-
hasResolutionChanged
private boolean hasResolutionChanged- Mappings:
Namespace Name Mixin selector named hasResolutionChangedLnet/minecraft/client/Mouse;hasResolutionChanged:Zintermediary field_1784Lnet/minecraft/class_312;field_1784:Zofficial jLfgp;j:Z
-
field_1796
private int field_1796- Mappings:
Namespace Name Mixin selector named field_1796Lnet/minecraft/client/Mouse;field_1796:Iintermediary field_1796Lnet/minecraft/class_312;field_1796:Iofficial kLfgp;k:I
-
glfwTime
private double glfwTime- Mappings:
Namespace Name Mixin selector named glfwTimeLnet/minecraft/client/Mouse;glfwTime:Dintermediary field_1792Lnet/minecraft/class_312;field_1792:Dofficial lLfgp;l:D
-
cursorXSmoother
- Mappings:
Namespace Name Mixin selector named cursorXSmootherLnet/minecraft/client/Mouse;cursorXSmoother:Lnet/minecraft/util/math/Smoother;intermediary field_1793Lnet/minecraft/class_312;field_1793:Lnet/minecraft/class_3540;official mLfgp;m:Lazf;
-
cursorYSmoother
- Mappings:
Namespace Name Mixin selector named cursorYSmootherLnet/minecraft/client/Mouse;cursorYSmoother:Lnet/minecraft/util/math/Smoother;intermediary field_1782Lnet/minecraft/class_312;field_1782:Lnet/minecraft/class_3540;official nLfgp;n:Lazf;
-
cursorDeltaX
private double cursorDeltaX- Mappings:
Namespace Name Mixin selector named cursorDeltaXLnet/minecraft/client/Mouse;cursorDeltaX:Dintermediary field_1789Lnet/minecraft/class_312;field_1789:Dofficial oLfgp;o:D
-
cursorDeltaY
private double cursorDeltaY- Mappings:
Namespace Name Mixin selector named cursorDeltaYLnet/minecraft/client/Mouse;cursorDeltaY:Dintermediary field_1787Lnet/minecraft/class_312;field_1787:Dofficial pLfgp;p:D
-
eventDeltaHorizontalWheel
private double eventDeltaHorizontalWheel- Mappings:
Namespace Name Mixin selector named eventDeltaHorizontalWheelLnet/minecraft/client/Mouse;eventDeltaHorizontalWheel:Dintermediary field_45296Lnet/minecraft/class_312;field_45296:Dofficial qLfgp;q:D
-
eventDeltaVerticalWheel
private double eventDeltaVerticalWheel- Mappings:
Namespace Name Mixin selector named eventDeltaVerticalWheelLnet/minecraft/client/Mouse;eventDeltaVerticalWheel:Dintermediary field_45297Lnet/minecraft/class_312;field_45297:Dofficial rLfgp;r:D
-
lastTickTime
private double lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTimeLnet/minecraft/client/Mouse;lastTickTime:Dintermediary field_47842Lnet/minecraft/class_312;field_47842:Dofficial sLfgp;s:D
-
cursorLocked
private boolean cursorLocked- Mappings:
Namespace Name Mixin selector named cursorLockedLnet/minecraft/client/Mouse;cursorLocked:Zintermediary field_1783Lnet/minecraft/class_312;field_1783:Zofficial tLfgp;t:Z
-
-
Constructor Details
-
Mouse
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/Mouse;<init>(Lnet/minecraft/client/MinecraftClient;)Vintermediary <init>Lnet/minecraft/class_312;<init>(Lnet/minecraft/class_310;)Vofficial <init>Lfgp;<init>(Lfgo;)V
-
-
Method Details
-
onMouseButton
private void onMouseButton(long window, int button, int action, int mods) - Mappings:
Namespace Name Mixin selector named onMouseButtonLnet/minecraft/client/Mouse;onMouseButton(JIII)Vintermediary method_1601Lnet/minecraft/class_312;method_1601(JIII)Vofficial aLfgp;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 onMouseScrollLnet/minecraft/client/Mouse;onMouseScroll(JDD)Vintermediary method_1598Lnet/minecraft/class_312;method_1598(JDD)Vofficial aLfgp;a(JDD)V
-
onFilesDropped
- Mappings:
Namespace Name Mixin selector named onFilesDroppedLnet/minecraft/client/Mouse;onFilesDropped(JLjava/util/List;I)Vintermediary method_29616Lnet/minecraft/class_312;method_29616(JLjava/util/List;I)Vofficial aLfgp;a(JLjava/util/List;I)V
-
setup
public void setup(long window) - Mappings:
Namespace Name Mixin selector named setupLnet/minecraft/client/Mouse;setup(J)Vintermediary method_1607Lnet/minecraft/class_312;method_1607(J)Vofficial aLfgp;a(J)V
-
onCursorPos
private void onCursorPos(long window, double x, double y) - Mappings:
Namespace Name Mixin selector named onCursorPosLnet/minecraft/client/Mouse;onCursorPos(JDD)Vintermediary method_1600Lnet/minecraft/class_312;method_1600(JDD)Vofficial bLfgp;b(JDD)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/Mouse;tick()Vintermediary method_55793Lnet/minecraft/class_312;method_55793()Vofficial aLfgp;a()V
-
updateMouse
private void updateMouse(double timeDelta) - Mappings:
Namespace Name Mixin selector named updateMouseLnet/minecraft/client/Mouse;updateMouse(D)Vintermediary method_1606Lnet/minecraft/class_312;method_1606(D)Vofficial aLfgp;a(D)V
-
wasLeftButtonClicked
public boolean wasLeftButtonClicked()- Mappings:
Namespace Name Mixin selector named wasLeftButtonClickedLnet/minecraft/client/Mouse;wasLeftButtonClicked()Zintermediary method_1608Lnet/minecraft/class_312;method_1608()Zofficial bLfgp;b()Z
-
wasMiddleButtonClicked
public boolean wasMiddleButtonClicked()- Mappings:
Namespace Name Mixin selector named wasMiddleButtonClickedLnet/minecraft/client/Mouse;wasMiddleButtonClicked()Zintermediary method_35707Lnet/minecraft/class_312;method_35707()Zofficial cLfgp;c()Z
-
wasRightButtonClicked
public boolean wasRightButtonClicked()- Mappings:
Namespace Name Mixin selector named wasRightButtonClickedLnet/minecraft/client/Mouse;wasRightButtonClicked()Zintermediary method_1609Lnet/minecraft/class_312;method_1609()Zofficial dLfgp;d()Z
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/client/Mouse;getX()Dintermediary method_1603Lnet/minecraft/class_312;method_1603()Dofficial eLfgp;e()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/client/Mouse;getY()Dintermediary method_1604Lnet/minecraft/class_312;method_1604()Dofficial fLfgp;f()D
-
onResolutionChanged
public void onResolutionChanged()- Mappings:
Namespace Name Mixin selector named onResolutionChangedLnet/minecraft/client/Mouse;onResolutionChanged()Vintermediary method_1599Lnet/minecraft/class_312;method_1599()Vofficial gLfgp;g()V
-
isCursorLocked
public boolean isCursorLocked()- Mappings:
Namespace Name Mixin selector named isCursorLockedLnet/minecraft/client/Mouse;isCursorLocked()Zintermediary method_1613Lnet/minecraft/class_312;method_1613()Zofficial hLfgp;h()Z
-
lockCursor
public void lockCursor()- Mappings:
Namespace Name Mixin selector named lockCursorLnet/minecraft/client/Mouse;lockCursor()Vintermediary method_1612Lnet/minecraft/class_312;method_1612()Vofficial iLfgp;i()V
-
unlockCursor
public void unlockCursor()- Mappings:
Namespace Name Mixin selector named unlockCursorLnet/minecraft/client/Mouse;unlockCursor()Vintermediary method_1610Lnet/minecraft/class_312;method_1610()Vofficial jLfgp;j()V
-
setResolutionChanged
public void setResolutionChanged()- Mappings:
Namespace Name Mixin selector named setResolutionChangedLnet/minecraft/client/Mouse;setResolutionChanged()Vintermediary method_30134Lnet/minecraft/class_312;method_30134()Vofficial kLfgp;k()V
-