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 gtinamed xintermediary comp_4798official bnamed yintermediary comp_4799official cnamed buttonInfointermediary comp_4800official d
-
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
field_62593 -
Constructor Summary
Constructors -
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.
-
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
-
-
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 aLgtg;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 sLgti;s()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 bLgtg;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
-