Record Class SetToDefaultEvent
java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.SetToDefaultEvent
- All Implemented Interfaces:
ISetToDefaultEvent
public record SetToDefaultEvent(net.minecraft.client.Options options, net.minecraft.client.KeyMapping mapping)
extends Record
implements ISetToDefaultEvent
Fired when a key is set to the default, either through the individual reset button or the global reset button.
-
Constructor Summary
ConstructorsConstructorDescriptionSetToDefaultEvent(net.minecraft.client.Options options, net.minecraft.client.KeyMapping mapping) Creates an instance of aSetToDefaultEventrecord 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.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
-
SetToDefaultEvent
public SetToDefaultEvent(net.minecraft.client.Options options, net.minecraft.client.KeyMapping mapping) Creates an instance of aSetToDefaultEventrecord class.- Parameters:
options- the value for theoptionsrecord componentmapping- the value for themappingrecord 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 interfaceISetToDefaultEvent- Returns:
- the value of the
optionsrecord component
-
mapping
public net.minecraft.client.KeyMapping mapping()Returns the value of themappingrecord component.- Specified by:
mappingin interfaceISetToDefaultEvent- Returns:
- the value of the
mappingrecord component
-