Package net.minecraft
Record Class class_11908
java.lang.Object
java.lang.Record
net.minecraft.class_11908
- Record Components:
key-scancode-modifiers-
- All Implemented Interfaces:
class_11907
@Environment(CLIENT)
public record class_11908(int key, int scancode, int modifiers)
extends Record
implements class_11907
- Mappings:
Namespace Name named net/minecraft/class_11908intermediary net/minecraft/class_11908official gsjnamed keyintermediary comp_4795official bnamed scancodeintermediary comp_4796official cnamed modifiersintermediary comp_4797official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thekeyrecord component.private final intThe field for themodifiersrecord component.private final intThe field for thescancoderecord component.Fields inherited from interface net.minecraft.class_11907
field_62593 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intkey()Returns the value of thekeyrecord component.intintReturns the value of themodifiersrecord component.intscancode()Returns the value of thescancoderecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.class_11907
method_74229, method_74230, method_74231, method_74232, method_74233, method_74234, method_74235, method_74236, method_74237, method_74238, method_74239, method_74240, method_74241, method_74242, method_74243, method_74244
-
Field Details
-
Constructor Details
-
class_11908
public class_11908(int int2, int int3, int int4)
-
-
Method Details
-
method_74228
public int method_74228()- Specified by:
method_74228in interfaceclass_11907- Mappings:
Namespace Name Mixin selector named method_74228Lnet/minecraft/class_11907;method_74228()Iintermediary method_74228Lnet/minecraft/class_11907;method_74228()Iofficial aLgsi;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 '=='. -
key
public int key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
scancode
public int scancode()Returns the value of thescancoderecord component.- Returns:
- the value of the
scancoderecord component
-
modifiers
public int modifiers()Returns the value of themodifiersrecord component.- Specified by:
modifiersin interfaceclass_11907- Returns:
- the value of the
modifiersrecord component
-