Record Class IsKeyCodeModifierEvent
java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.IsKeyCodeModifierEvent
- All Implemented Interfaces:
IIsKeyCodeModifierEvent
public record IsKeyCodeModifierEvent(com.mojang.blaze3d.platform.InputConstants.Key key)
extends Record
implements IIsKeyCodeModifierEvent
Fired to check if a
InputConstants.Key is a valid key code modifier (like shift, control, alt).-
Constructor Summary
ConstructorsConstructorDescriptionIsKeyCodeModifierEvent(com.mojang.blaze3d.platform.InputConstants.Key key) Creates an instance of aIsKeyCodeModifierEventrecord class. -
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.com.mojang.blaze3d.platform.InputConstants.Keykey()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IsKeyCodeModifierEvent
public IsKeyCodeModifierEvent(com.mojang.blaze3d.platform.InputConstants.Key key) Creates an instance of aIsKeyCodeModifierEventrecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
key
public com.mojang.blaze3d.platform.InputConstants.Key key()Returns the value of thekeyrecord component.- Specified by:
keyin interfaceIIsKeyCodeModifierEvent- Returns:
- the value of the
keyrecord component
-