Package net.minecraft.client
Class Mouse
java.lang.Object
net.minecraft.client.Mouse
- Mappings:
Namespace Name official engintermediary net/minecraft/class_312named net/minecraft/client/Mouse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final MinecraftClientprivate intprivate doubleprivate doubleprivate booleanprivate final SmoothUtilprivate final SmoothUtilprivate doubleprivate intprivate doubleprivate booleanprivate doubleprivate booleanprivate 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) 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) voidvoidbooleanbooleanboolean
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official aLeng;a:Lenf;intermediary field_1779Lnet/minecraft/class_312;field_1779:Lnet/minecraft/class_310;named clientLnet/minecraft/client/Mouse;client:Lnet/minecraft/client/MinecraftClient;
-
leftButtonClicked
private boolean leftButtonClicked- Mappings:
Namespace Name Mixin selector official bLeng;b:Zintermediary field_1791Lnet/minecraft/class_312;field_1791:Znamed leftButtonClickedLnet/minecraft/client/Mouse;leftButtonClicked:Z
-
middleButtonClicked
private boolean middleButtonClicked- Mappings:
Namespace Name Mixin selector official cLeng;c:Zintermediary field_1790Lnet/minecraft/class_312;field_1790:Znamed middleButtonClickedLnet/minecraft/client/Mouse;middleButtonClicked:Z
-
rightButtonClicked
private boolean rightButtonClicked- Mappings:
Namespace Name Mixin selector official dLeng;d:Zintermediary field_1788Lnet/minecraft/class_312;field_1788:Znamed rightButtonClickedLnet/minecraft/client/Mouse;rightButtonClicked:Z
-
x
private double x- Mappings:
Namespace Name Mixin selector official eLeng;e:Dintermediary field_1795Lnet/minecraft/class_312;field_1795:Dnamed xLnet/minecraft/client/Mouse;x:D
-
y
private double y- Mappings:
Namespace Name Mixin selector official fLeng;f:Dintermediary field_1794Lnet/minecraft/class_312;field_1794:Dnamed yLnet/minecraft/client/Mouse;y:D
-
controlLeftTicks
private int controlLeftTicks- Mappings:
Namespace Name Mixin selector official gLeng;g:Iintermediary field_1781Lnet/minecraft/class_312;field_1781:Inamed controlLeftTicksLnet/minecraft/client/Mouse;controlLeftTicks:I
-
activeButton
private int activeButton- Mappings:
Namespace Name Mixin selector official hLeng;h:Iintermediary field_1780Lnet/minecraft/class_312;field_1780:Inamed activeButtonLnet/minecraft/client/Mouse;activeButton:I
-
hasResolutionChanged
private boolean hasResolutionChanged- Mappings:
Namespace Name Mixin selector official iLeng;i:Zintermediary field_1784Lnet/minecraft/class_312;field_1784:Znamed hasResolutionChangedLnet/minecraft/client/Mouse;hasResolutionChanged:Z
-
field_1796
private int field_1796- Mappings:
Namespace Name Mixin selector official jLeng;j:Iintermediary field_1796Lnet/minecraft/class_312;field_1796:Inamed field_1796Lnet/minecraft/client/Mouse;field_1796:I
-
glfwTime
private double glfwTime- Mappings:
Namespace Name Mixin selector official kLeng;k:Dintermediary field_1792Lnet/minecraft/class_312;field_1792:Dnamed glfwTimeLnet/minecraft/client/Mouse;glfwTime:D
-
cursorXSmoother
- Mappings:
Namespace Name Mixin selector official lLeng;l:Lapn;intermediary field_1793Lnet/minecraft/class_312;field_1793:Lnet/minecraft/class_3540;named cursorXSmootherLnet/minecraft/client/Mouse;cursorXSmoother:Lnet/minecraft/client/util/SmoothUtil;
-
cursorYSmoother
- Mappings:
Namespace Name Mixin selector official mLeng;m:Lapn;intermediary field_1782Lnet/minecraft/class_312;field_1782:Lnet/minecraft/class_3540;named cursorYSmootherLnet/minecraft/client/Mouse;cursorYSmoother:Lnet/minecraft/client/util/SmoothUtil;
-
cursorDeltaX
private double cursorDeltaX- Mappings:
Namespace Name Mixin selector official nLeng;n:Dintermediary field_1789Lnet/minecraft/class_312;field_1789:Dnamed cursorDeltaXLnet/minecraft/client/Mouse;cursorDeltaX:D
-
cursorDeltaY
private double cursorDeltaY- Mappings:
Namespace Name Mixin selector official oLeng;o:Dintermediary field_1787Lnet/minecraft/class_312;field_1787:Dnamed cursorDeltaYLnet/minecraft/client/Mouse;cursorDeltaY:D
-
eventDeltaWheel
private double eventDeltaWheel- Mappings:
Namespace Name Mixin selector official pLeng;p:Dintermediary field_1786Lnet/minecraft/class_312;field_1786:Dnamed eventDeltaWheelLnet/minecraft/client/Mouse;eventDeltaWheel:D
-
lastMouseUpdateTime
private double lastMouseUpdateTime- Mappings:
Namespace Name Mixin selector official qLeng;q:Dintermediary field_1785Lnet/minecraft/class_312;field_1785:Dnamed lastMouseUpdateTimeLnet/minecraft/client/Mouse;lastMouseUpdateTime:D
-
cursorLocked
private boolean cursorLocked- Mappings:
Namespace Name Mixin selector official rLeng;r:Zintermediary field_1783Lnet/minecraft/class_312;field_1783:Znamed cursorLockedLnet/minecraft/client/Mouse;cursorLocked:Z
-
-
Constructor Details
-
Mouse
- Mappings:
Namespace Name Mixin selector official <init>Leng;<init>(Lenf;)Vintermediary <init>Lnet/minecraft/class_312;<init>(Lnet/minecraft/class_310;)Vnamed <init>Lnet/minecraft/client/Mouse;<init>(Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
onMouseButton
private void onMouseButton(long window, int button, int action, int mods) - Mappings:
Namespace Name Mixin selector official aLeng;a(JIII)Vintermediary method_1601Lnet/minecraft/class_312;method_1601(JIII)Vnamed onMouseButtonLnet/minecraft/client/Mouse;onMouseButton(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 official aLeng;a(JDD)Vintermediary method_1598Lnet/minecraft/class_312;method_1598(JDD)Vnamed onMouseScrollLnet/minecraft/client/Mouse;onMouseScroll(JDD)V
-
onFilesDropped
- Mappings:
Namespace Name Mixin selector official aLeng;a(JLjava/util/List;)Vintermediary method_29616Lnet/minecraft/class_312;method_29616(JLjava/util/List;)Vnamed onFilesDroppedLnet/minecraft/client/Mouse;onFilesDropped(JLjava/util/List;)V
-
setup
public void setup(long window) - Mappings:
Namespace Name Mixin selector official aLeng;a(J)Vintermediary method_1607Lnet/minecraft/class_312;method_1607(J)Vnamed setupLnet/minecraft/client/Mouse;setup(J)V
-
onCursorPos
private void onCursorPos(long window, double x, double y) - Mappings:
Namespace Name Mixin selector official bLeng;b(JDD)Vintermediary method_1600Lnet/minecraft/class_312;method_1600(JDD)Vnamed onCursorPosLnet/minecraft/client/Mouse;onCursorPos(JDD)V
-
updateMouse
public void updateMouse()- Mappings:
Namespace Name Mixin selector official aLeng;a()Vintermediary method_1606Lnet/minecraft/class_312;method_1606()Vnamed updateMouseLnet/minecraft/client/Mouse;updateMouse()V
-
wasLeftButtonClicked
public boolean wasLeftButtonClicked()- Mappings:
Namespace Name Mixin selector official bLeng;b()Zintermediary method_1608Lnet/minecraft/class_312;method_1608()Znamed wasLeftButtonClickedLnet/minecraft/client/Mouse;wasLeftButtonClicked()Z
-
wasMiddleButtonClicked
public boolean wasMiddleButtonClicked()- Mappings:
Namespace Name Mixin selector official cLeng;c()Zintermediary method_35707Lnet/minecraft/class_312;method_35707()Znamed wasMiddleButtonClickedLnet/minecraft/client/Mouse;wasMiddleButtonClicked()Z
-
wasRightButtonClicked
public boolean wasRightButtonClicked()- Mappings:
Namespace Name Mixin selector official dLeng;d()Zintermediary method_1609Lnet/minecraft/class_312;method_1609()Znamed wasRightButtonClickedLnet/minecraft/client/Mouse;wasRightButtonClicked()Z
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector official eLeng;e()Dintermediary method_1603Lnet/minecraft/class_312;method_1603()Dnamed getXLnet/minecraft/client/Mouse;getX()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector official fLeng;f()Dintermediary method_1604Lnet/minecraft/class_312;method_1604()Dnamed getYLnet/minecraft/client/Mouse;getY()D
-
onResolutionChanged
public void onResolutionChanged()- Mappings:
Namespace Name Mixin selector official gLeng;g()Vintermediary method_1599Lnet/minecraft/class_312;method_1599()Vnamed onResolutionChangedLnet/minecraft/client/Mouse;onResolutionChanged()V
-
isCursorLocked
public boolean isCursorLocked()- Mappings:
Namespace Name Mixin selector official hLeng;h()Zintermediary method_1613Lnet/minecraft/class_312;method_1613()Znamed isCursorLockedLnet/minecraft/client/Mouse;isCursorLocked()Z
-
lockCursor
public void lockCursor()- Mappings:
Namespace Name Mixin selector official iLeng;i()Vintermediary method_1612Lnet/minecraft/class_312;method_1612()Vnamed lockCursorLnet/minecraft/client/Mouse;lockCursor()V
-
unlockCursor
public void unlockCursor()- Mappings:
Namespace Name Mixin selector official jLeng;j()Vintermediary method_1610Lnet/minecraft/class_312;method_1610()Vnamed unlockCursorLnet/minecraft/client/Mouse;unlockCursor()V
-
setResolutionChanged
public void setResolutionChanged()- Mappings:
Namespace Name Mixin selector official kLeng;k()Vintermediary method_30134Lnet/minecraft/class_312;method_30134()Vnamed setResolutionChangedLnet/minecraft/client/Mouse;setResolutionChanged()V
-