Package net.minecraft.client
Class Mouse
java.lang.Object
net.minecraft.client.Mouse
@Environment(CLIENT) public class Mouse extends Object
- Mappings:
Namespace Name official dqlintermediary net/minecraft/class_312named net/minecraft/client/Mouse
-
Field Summary
Fields Modifier and Type Field Description private intactiveButtonprivate MinecraftClientclientprivate intcontrolLeftTicksprivate doublecursorDeltaXprivate doublecursorDeltaYprivate booleancursorLockedprivate SmoothUtilcursorXSmootherprivate SmoothUtilcursorYSmootherprivate doubleeventDeltaWheelprivate intfield_1796private doubleglfwTimeprivate booleanhasResolutionChangedprivate doublelastMouseUpdateTimeprivate booleanleftButtonClickedprivate booleanmiddleButtonClickedprivate booleanrightButtonClickedprivate doublexprivate doubley -
Constructor Summary
Constructors Constructor Description Mouse(MinecraftClient client) -
Method Summary
Modifier and Type Method Description doublegetX()doublegetY()booleanisCursorLocked()voidlockCursor()private voidmethod_29616(long long2, List<Path> list)private voidonCursorPos(long window, double x, double y)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.voidonResolutionChanged()voidsetResolutionChanged()voidsetup(long long2)voidunlockCursor()voidupdateMouse()booleanwasLeftButtonClicked()booleanwasRightButtonClicked()
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official aLdql;a:Ldqk;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 bLdql;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 cLdql;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 dLdql;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 eLdql;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 fLdql;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 gLdql;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 hLdql;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 iLdql;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 jLdql;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 kLdql;k:Dintermediary field_1792Lnet/minecraft/class_312;field_1792:Dnamed glfwTimeLnet/minecraft/client/Mouse;glfwTime:D
-
cursorXSmoother
- Mappings:
Namespace Name Mixin selector official lLdql;l:Lagf;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 mLdql;m:Lagf;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 nLdql;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 oLdql;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 pLdql;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 qLdql;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 rLdql;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>Ldql;<init>(Ldqk;)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 aLdql;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 aLdql;a(JDD)Vintermediary method_1598Lnet/minecraft/class_312;method_1598(JDD)Vnamed onMouseScrollLnet/minecraft/client/Mouse;onMouseScroll(JDD)V
-
method_29616
- Mappings:
Namespace Name Mixin selector official aLdql;a(JLjava/util/List;)Vintermediary method_29616Lnet/minecraft/class_312;method_29616(JLjava/util/List;)Vnamed method_29616Lnet/minecraft/client/Mouse;method_29616(JLjava/util/List;)V
-
setup
public void setup(long long2)- Mappings:
Namespace Name Mixin selector official aLdql;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 bLdql;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 aLdql;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 bLdql;b()Zintermediary method_1608Lnet/minecraft/class_312;method_1608()Znamed wasLeftButtonClickedLnet/minecraft/client/Mouse;wasLeftButtonClicked()Z
-
wasRightButtonClicked
public boolean wasRightButtonClicked()- Mappings:
Namespace Name Mixin selector official dLdql;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 eLdql;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 fLdql;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 gLdql;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 hLdql;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 iLdql;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 jLdql;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 kLdql;k()Vintermediary method_30134Lnet/minecraft/class_312;method_30134()Vnamed setResolutionChangedLnet/minecraft/client/Mouse;setResolutionChanged()V
-