Record Class SetKeyEvent
java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.SetKeyEvent
- All Implemented Interfaces:
ISetKeyEvent
public record SetKeyEvent(net.minecraft.client.Options options, net.minecraft.client.KeyMapping mapping, com.mojang.blaze3d.platform.InputConstants.Key key)
extends Record
implements ISetKeyEvent
Fired when a key is set.
-
Constructor Summary
ConstructorsConstructorDescriptionSetKeyEvent(net.minecraft.client.Options options, net.minecraft.client.KeyMapping mapping, com.mojang.blaze3d.platform.InputConstants.Key key) Creates an instance of aSetKeyEventrecord 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.net.minecraft.client.KeyMappingmapping()Returns the value of themappingrecord component.net.minecraft.client.Optionsoptions()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SetKeyEvent
public SetKeyEvent(net.minecraft.client.Options options, net.minecraft.client.KeyMapping mapping, com.mojang.blaze3d.platform.InputConstants.Key key) Creates an instance of aSetKeyEventrecord class.- Parameters:
options- the value for theoptionsrecord componentmapping- the value for themappingrecord componentkey- 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). -
options
public net.minecraft.client.Options options()Returns the value of theoptionsrecord component.- Specified by:
optionsin interfaceISetKeyEvent- Returns:
- the value of the
optionsrecord component
-
mapping
public net.minecraft.client.KeyMapping mapping()Returns the value of themappingrecord component.- Specified by:
mappingin interfaceISetKeyEvent- Returns:
- the value of the
mappingrecord component
-
key
public com.mojang.blaze3d.platform.InputConstants.Key key()Returns the value of thekeyrecord component.- Specified by:
keyin interfaceISetKeyEvent- Returns:
- the value of the
keyrecord component
-