Record Class HasConflictingModifierEvent
java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.HasConflictingModifierEvent
- All Implemented Interfaces:
IHasConflictingModifierEvent
public record HasConflictingModifierEvent(net.minecraft.client.KeyMapping thisMapping, net.minecraft.client.KeyMapping otherMapping)
extends Record
implements IHasConflictingModifierEvent
Fired to check if a
KeyMapping conflicts with another KeyMapping.-
Constructor Summary
ConstructorsConstructorDescriptionHasConflictingModifierEvent(net.minecraft.client.KeyMapping thisMapping, net.minecraft.client.KeyMapping otherMapping) Creates an instance of aHasConflictingModifierEventrecord 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.KeyMappingReturns the value of theotherMappingrecord component.net.minecraft.client.KeyMappingReturns the value of thethisMappingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HasConflictingModifierEvent
public HasConflictingModifierEvent(net.minecraft.client.KeyMapping thisMapping, net.minecraft.client.KeyMapping otherMapping) Creates an instance of aHasConflictingModifierEventrecord class.- Parameters:
thisMapping- the value for thethisMappingrecord componentotherMapping- the value for theotherMappingrecord 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). -
thisMapping
public net.minecraft.client.KeyMapping thisMapping()Returns the value of thethisMappingrecord component.- Specified by:
thisMappingin interfaceIHasConflictingModifierEvent- Returns:
- the value of the
thisMappingrecord component
-
otherMapping
public net.minecraft.client.KeyMapping otherMapping()Returns the value of theotherMappingrecord component.- Specified by:
otherMappingin interfaceIHasConflictingModifierEvent- Returns:
- the value of the
otherMappingrecord component
-