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 fwf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final Smootherprivate final Smootherprivate intstatic final longprivate doubleprivate booleanprotected intprotected longprivate 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 dLfwf;d:Lorg/slf4j/Logger;
-
field_61505
public static final long field_61505- See Also:
- Mappings:
Namespace Name Mixin selector named field_61505Lnet/minecraft/client/Mouse;field_61505:Jintermediary field_61505Lnet/minecraft/class_312;field_61505:Jofficial aLfwf;a:J
-
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 eLfwf;e:Lfwe;
-
leftButtonClicked
private boolean leftButtonClicked- Mappings:
Namespace Name Mixin selector named leftButtonClickedLnet/minecraft/client/Mouse;leftButtonClicked:Zintermediary field_1791Lnet/minecraft/class_312;field_1791:Zofficial fLfwf;f: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 gLfwf;g: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 hLfwf;h: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 iLfwf;i: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 jLfwf;j:D
-
lastMouseButtonClickTimeMs
protected long lastMouseButtonClickTimeMs- Mappings:
Namespace Name Mixin selector named lastMouseButtonClickTimeMsLnet/minecraft/client/Mouse;lastMouseButtonClickTimeMs:Jintermediary field_61506Lnet/minecraft/class_312;field_61506:Jofficial bLfwf;b:J
-
lastMouseButton
protected int lastMouseButton- Mappings:
Namespace Name Mixin selector named lastMouseButtonLnet/minecraft/client/Mouse;lastMouseButton:Iintermediary field_61507Lnet/minecraft/class_312;field_61507:Iofficial cLfwf;c:I
-
controlLeftClicks
private int controlLeftClicks- Mappings:
Namespace Name Mixin selector named controlLeftClicksLnet/minecraft/client/Mouse;controlLeftClicks:Iintermediary field_1781Lnet/minecraft/class_312;field_1781:Iofficial kLfwf;k: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 lLfwf;l: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 mLfwf;m: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 nLfwf;n: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 oLfwf;o: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 pLfwf;p:Lbdn;
-
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 qLfwf;q:Lbdn;
-
cursorDeltaX
private double cursorDeltaX- Mappings:
Namespace Name Mixin selector named cursorDeltaXLnet/minecraft/client/Mouse;cursorDeltaX:Dintermediary field_1789Lnet/minecraft/class_312;field_1789:Dofficial rLfwf;r: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 sLfwf;s: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 tLfwf;t:Lfwn;
-
lastTickTime
private double lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTimeLnet/minecraft/client/Mouse;lastTickTime:Dintermediary field_47842Lnet/minecraft/class_312;field_47842:Dofficial uLfwf;u: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 vLfwf;v: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>Lfwf;<init>(Lfwe;)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 aLfwf;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 aLfwf;a(Lq;Lfpk;)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 aLfwf;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 aLfwf;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 aLfwf;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 bLfwf;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 aLfwf;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 aLfwf;a(Lfpk;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 aLfwf;a(Lfpk;)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 bLfwf;b(Lfpk;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 bLfwf;b(Lfpk;)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 aLfwf;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 bLfwf;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 cLfwf;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 dLfwf;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 eLfwf;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 fLfwf;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 gLfwf;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 hLfwf;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 iLfwf;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 jLfwf;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 kLfwf;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 aLfwf;a(Lfzb;Lfze;)V
-