Package net.minecraft.client.input
Record Class MouseInput
java.lang.Object
java.lang.Record
net.minecraft.client.input.MouseInput
- Record Components:
-modifiers-
- All Implemented Interfaces:
AbstractInput
@Environment(CLIENT)
public record MouseInput(int button, int modifiers)
extends Record
implements AbstractInput
- Mappings:
Namespace Name named net/minecraft/client/input/MouseInputintermediary net/minecraft/class_11910official gtjnamed buttonintermediary comp_4801official bnamed modifiersintermediary comp_4797official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebuttonrecord component.private final intThe field for themodifiersrecord component.Fields inherited from interface net.minecraft.client.input.AbstractInput
field_62593 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbutton()Returns the value of thebuttonrecord component.final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.intReturns the value of themodifiersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
MouseInput
public MouseInput(int int2, int int3)
-
-
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
-
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. All components in this record class are compared with '=='. -
button
public int button()Returns the value of thebuttonrecord component.- Returns:
- the value of the
buttonrecord component
-
modifiers
public int modifiers()Returns the value of themodifiersrecord component.- Specified by:
modifiersin interfaceAbstractInput- Returns:
- the value of the
modifiersrecord component
-