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 fqr
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final Smootherprivate final Smootherprivate intprivate doubleprivate booleanprivate doubleprivate booleanprivate static final Loggerprivate booleanprivate booleanprivate final Scrollerprivate doubleprivate double - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddCrashReportSection(CrashReportSection section, Window window) voiddrawScaledPos(TextRenderer textRenderer, DrawContext context) doublegetScaledX(Window window) doublegetScaledY(Window window) doublegetX()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.voidstatic doublestatic doublevoidvoidsetup(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 aLfqr;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 bLfqr;b:Lfqq;
 - 
leftButtonClicked
private boolean leftButtonClicked- Mappings:
 Namespace Name Mixin selector named leftButtonClickedLnet/minecraft/client/Mouse;leftButtonClicked:Zintermediary field_1791Lnet/minecraft/class_312;field_1791:Zofficial cLfqr;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 dLfqr;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 eLfqr;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 fLfqr;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 gLfqr;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 hLfqr;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 iLfqr;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 jLfqr;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 kLfqr;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 lLfqr;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 mLfqr;m:Lbas;
 - 
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 nLfqr;n:Lbas;
 - 
cursorDeltaX
private double cursorDeltaX- Mappings:
 Namespace Name Mixin selector named cursorDeltaXLnet/minecraft/client/Mouse;cursorDeltaX:Dintermediary field_1789Lnet/minecraft/class_312;field_1789:Dofficial oLfqr;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 pLfqr;p:D
 - 
scroller
- Mappings:
 Namespace Name Mixin selector named scrollerLnet/minecraft/client/Mouse;scroller:Lnet/minecraft/client/input/Scroller;intermediary field_52757Lnet/minecraft/class_312;field_52757:Lnet/minecraft/class_9928;official qLfqr;q:Lfqz;
 - 
lastTickTime
private double lastTickTime- Mappings:
 Namespace Name Mixin selector named lastTickTimeLnet/minecraft/client/Mouse;lastTickTime:Dintermediary field_47842Lnet/minecraft/class_312;field_47842:Dofficial rLfqr;r: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 sLfqr;s: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>Lfqr;<init>(Lfqq;)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 aLfqr;a(JIII)V
 - 
addCrashReportSection
- Mappings:
 Namespace Name Mixin selector named addCrashReportSectionLnet/minecraft/client/Mouse;addCrashReportSection(Lnet/minecraft/util/crash/CrashReportSection;Lnet/minecraft/client/util/Window;)Vintermediary method_68882Lnet/minecraft/class_312;method_68882(Lnet/minecraft/class_129;Lnet/minecraft/class_1041;)Vofficial aLfqr;a(Lq;Lfki;)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 aLfqr;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 aLfqr;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 aLfqr;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 bLfqr;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 aLfqr;a()V
 - 
scaleX
- Mappings:
 Namespace Name Mixin selector named scaleXLnet/minecraft/client/Mouse;scaleX(Lnet/minecraft/client/util/Window;D)Dintermediary method_68880Lnet/minecraft/class_312;method_68880(Lnet/minecraft/class_1041;D)Dofficial aLfqr;a(Lfki;D)D
 - 
getScaledX
- Mappings:
 Namespace Name Mixin selector named getScaledXLnet/minecraft/client/Mouse;getScaledX(Lnet/minecraft/client/util/Window;)Dintermediary method_68879Lnet/minecraft/class_312;method_68879(Lnet/minecraft/class_1041;)Dofficial aLfqr;a(Lfki;)D
 - 
scaleY
- Mappings:
 Namespace Name Mixin selector named scaleYLnet/minecraft/client/Mouse;scaleY(Lnet/minecraft/client/util/Window;D)Dintermediary method_68884Lnet/minecraft/class_312;method_68884(Lnet/minecraft/class_1041;D)Dofficial bLfqr;b(Lfki;D)D
 - 
getScaledY
- Mappings:
 Namespace Name Mixin selector named getScaledYLnet/minecraft/client/Mouse;getScaledY(Lnet/minecraft/client/util/Window;)Dintermediary method_68883Lnet/minecraft/class_312;method_68883(Lnet/minecraft/class_1041;)Dofficial bLfqr;b(Lfki;)D
 - 
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 aLfqr;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 bLfqr;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 cLfqr;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 dLfqr;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 eLfqr;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 fLfqr;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 gLfqr;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 hLfqr;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 iLfqr;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 jLfqr;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 kLfqr;k()V
 - 
drawScaledPos
- Mappings:
 Namespace Name Mixin selector named drawScaledPosLnet/minecraft/client/Mouse;drawScaledPos(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_68881Lnet/minecraft/class_312;method_68881(Lnet/minecraft/class_327;Lnet/minecraft/class_332;)Vofficial aLfqr;a(Lfti;Lftk;)V
 
 -