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 gaa
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable MouseInputprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final Smootherprivate final Smootherstatic final longprivate doubleprivate booleanprotected intprotected longprivate doubleprivate booleanprivate static final Loggerprivate booleanprivate booleanprivate final Scrollerprivate intprivate 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 MouseInputmodifyMouseInput(MouseInput input, boolean pressed) private voidonCursorPos(long window, double x, double y) private voidonFilesDropped(long window, List<Path> paths, int invalidFilesCount) private voidonMouseButton(long window, MouseInput input, int action) private voidonMouseScroll(long window, double horizontal, double vertical) Called when a mouse is used to scroll.voidstatic doublestatic doublevoidvoidvoidtick()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 dLgaa;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 aLgaa;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 eLgaa;e:Lfzz;
-
leftButtonClicked
private boolean leftButtonClicked- Mappings:
Namespace Name Mixin selector named leftButtonClickedLnet/minecraft/client/Mouse;leftButtonClicked:Zintermediary field_1791Lnet/minecraft/class_312;field_1791:Zofficial fLgaa;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 gLgaa;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 hLgaa;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 iLgaa;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 jLgaa;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 bLgaa;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 cLgaa;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 kLgaa;k:I
-
activeButton
- Mappings:
Namespace Name Mixin selector named activeButtonLnet/minecraft/client/Mouse;activeButton:Lnet/minecraft/client/input/MouseInput;intermediary field_1780Lnet/minecraft/class_312;field_1780:Lnet/minecraft/class_11910;official lLgaa;l:Lgtj;
-
hasResolutionChanged
private boolean hasResolutionChanged- Mappings:
Namespace Name Mixin selector named hasResolutionChangedLnet/minecraft/client/Mouse;hasResolutionChanged:Zintermediary field_1784Lnet/minecraft/class_312;field_1784:Zofficial mLgaa;m:Z
-
touchHoldTime
private int touchHoldTime- Mappings:
Namespace Name Mixin selector named touchHoldTimeLnet/minecraft/client/Mouse;touchHoldTime:Iintermediary field_1796Lnet/minecraft/class_312;field_1796:Iofficial nLgaa;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 oLgaa;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 pLgaa;p:Lbga;
-
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 qLgaa;q:Lbga;
-
cursorDeltaX
private double cursorDeltaX- Mappings:
Namespace Name Mixin selector named cursorDeltaXLnet/minecraft/client/Mouse;cursorDeltaX:Dintermediary field_1789Lnet/minecraft/class_312;field_1789:Dofficial rLgaa;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 sLgaa;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 tLgaa;t:Lgai;
-
lastTickTime
private double lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTimeLnet/minecraft/client/Mouse;lastTickTime:Dintermediary field_47842Lnet/minecraft/class_312;field_47842:Dofficial uLgaa;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 vLgaa;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>Lgaa;<init>(Lfzz;)V
-
-
Method Details
-
onMouseButton
- Mappings:
Namespace Name Mixin selector named onMouseButtonLnet/minecraft/client/Mouse;onMouseButton(JLnet/minecraft/client/input/MouseInput;I)Vintermediary method_1601Lnet/minecraft/class_312;method_1601(JLnet/minecraft/class_11910;I)Vofficial aLgaa;a(JLgtj;I)V
-
modifyMouseInput
- Mappings:
Namespace Name Mixin selector named modifyMouseInputLnet/minecraft/client/Mouse;modifyMouseInput(Lnet/minecraft/client/input/MouseInput;Z)Lnet/minecraft/client/input/MouseInput;intermediary method_74190Lnet/minecraft/class_312;method_74190(Lnet/minecraft/class_11910;Z)Lnet/minecraft/class_11910;official aLgaa;a(Lgtj;Z)Lgtj;
-
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 aLgaa;a(Lq;Lftb;)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 aLgaa;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 aLgaa;a(JLjava/util/List;I)V
-
setup
- Mappings:
Namespace Name Mixin selector named setupLnet/minecraft/client/Mouse;setup(Lnet/minecraft/client/util/Window;)Vintermediary method_1607Lnet/minecraft/class_312;method_1607(Lnet/minecraft/class_1041;)Vofficial aLgaa;a(Lftb;)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 bLgaa;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 aLgaa;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 aLgaa;a(Lftb;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 bLgaa;b(Lftb;)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 bLgaa;b(Lftb;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 cLgaa;c(Lftb;)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 aLgaa;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 bLgaa;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 cLgaa;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 dLgaa;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 eLgaa;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 fLgaa;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 gLgaa;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 hLgaa;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 iLgaa;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 jLgaa;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 kLgaa;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 aLgaa;a(Lgda;Lgdd;)V
-