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 fvv
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final Smootherprivate final Smootherprivate intstatic final longprotected longprotected 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 dLfvv;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 aLfvv;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 eLfvv;e:Lfvu;
-
leftButtonClicked
private boolean leftButtonClicked- Mappings:
Namespace Name Mixin selector named leftButtonClickedLnet/minecraft/client/Mouse;leftButtonClicked:Zintermediary field_1791Lnet/minecraft/class_312;field_1791:Zofficial fLfvv;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 gLfvv;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 hLfvv;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 iLfvv;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 jLfvv;j:D
-
field_61506
protected long field_61506- Mappings:
Namespace Name Mixin selector named field_61506Lnet/minecraft/client/Mouse;field_61506:Jintermediary field_61506Lnet/minecraft/class_312;field_61506:Jofficial bLfvv;b:J
-
field_61507
protected int field_61507- Mappings:
Namespace Name Mixin selector named field_61507Lnet/minecraft/client/Mouse;field_61507:Iintermediary field_61507Lnet/minecraft/class_312;field_61507:Iofficial cLfvv;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 kLfvv;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 lLfvv;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 mLfvv;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 nLfvv;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 oLfvv;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 pLfvv;p:Lbdf;
-
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 qLfvv;q:Lbdf;
-
cursorDeltaX
private double cursorDeltaX- Mappings:
Namespace Name Mixin selector named cursorDeltaXLnet/minecraft/client/Mouse;cursorDeltaX:Dintermediary field_1789Lnet/minecraft/class_312;field_1789:Dofficial rLfvv;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 sLfvv;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 tLfvv;t:Lfwd;
-
lastTickTime
private double lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTimeLnet/minecraft/client/Mouse;lastTickTime:Dintermediary field_47842Lnet/minecraft/class_312;field_47842:Dofficial uLfvv;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 vLfvv;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>Lfvv;<init>(Lfvu;)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 aLfvv;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 aLfvv;a(Lq;Lfoz;)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 aLfvv;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 aLfvv;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 aLfvv;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 bLfvv;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 aLfvv;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 aLfvv;a(Lfoz;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 aLfvv;a(Lfoz;)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 bLfvv;b(Lfoz;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 bLfvv;b(Lfoz;)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 aLfvv;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 bLfvv;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 cLfvv;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 dLfvv;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 eLfvv;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 fLfvv;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 gLfvv;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 hLfvv;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 iLfvv;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 jLfvv;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 kLfvv;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 aLfvv;a(Lfyq;Lfyt;)V
-