Package net.minecraft.client.gui
Record Class Click
java.lang.Object
java.lang.Record
net.minecraft.client.gui.Click
- Record Components:
x-y--
- All Implemented Interfaces:
AbstractInput
@Environment(CLIENT)
public record Click(double x, double y, MouseInput buttonInfo)
extends Record
implements AbstractInput
- Mappings:
Namespace Name named net/minecraft/client/gui/Clickintermediary net/minecraft/class_11909official gwmnamed xintermediary comp_4798official bnamed yintermediary comp_4799official cnamed buttonInfointermediary comp_4800official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.input.AbstractInput
AbstractInput.Modifier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MouseInputThe field for thebuttonInforecord component.private final doubleThe field for thexrecord component.private final doubleThe field for theyrecord component.Fields inherited from interface net.minecraft.client.input.AbstractInput
NOT_A_NUMBER -
Constructor Summary
ConstructorsConstructorDescriptionClick(double x, double y, MouseInput buttonInfo) Creates an instance of aClickrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbutton()Returns the value of thebuttonInforecord component.final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.intfinal StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.input.AbstractInput
asNumber, hasAlt, hasCtrl, hasCtrlOrCmd, hasShift, isCopy, isCut, isDown, isEnter, isEnterOrSpace, isEscape, isLeft, isPaste, isRight, isSelectAll, isTab, isUp
-
Field Details
-
x
private final double xThe field for thexrecord component. -
y
private final double yThe field for theyrecord component. -
buttonInfo
The field for thebuttonInforecord component.
-
-
Constructor Details
-
Click
Creates an instance of aClickrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentbuttonInfo- the value for thebuttonInforecord component
-
-
Method Details
-
getKeycode
public int getKeycode()- Specified by:
getKeycodein interfaceAbstractInput- Mappings:
Namespace Name Mixin selector named getKeycodeLnet/minecraft/client/input/AbstractInput;getKeycode()Iintermediary method_74228Lnet/minecraft/class_11907;method_74228()Iofficial aLgwk;a()I
-
button
public int button()- Mappings:
Namespace Name Mixin selector named buttonLnet/minecraft/client/gui/Click;button()Iintermediary method_74245Lnet/minecraft/class_11909;method_74245()Iofficial tLgwm;t()I
-
modifiers
public int modifiers()- Specified by:
modifiersin interfaceAbstractInput- Mappings:
Namespace Name Mixin selector named modifiersLnet/minecraft/client/input/AbstractInput;modifiers()Iintermediary comp_4797Lnet/minecraft/class_11907;comp_4797()Iofficial bLgwk;b()I
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
buttonInfo
Returns the value of thebuttonInforecord component.- Returns:
- the value of the
buttonInforecord component
-