Record Class AbstractDragImmersive.AutoDragSettings
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.client.immersive.AbstractDragImmersive.AutoDragSettings
- Enclosing class:
AbstractDragImmersive
public static record AbstractDragImmersive.AutoDragSettings(Collection<Integer> nonInteractables, boolean makeHitboxesEveryTick)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAutoDragSettings(Collection<Integer> nonInteractables, boolean makeHitboxesEveryTick) Creates an instance of aAutoDragSettingsrecord 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.booleanReturns the value of themakeHitboxesEveryTickrecord component.Returns the value of thenonInteractablesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AutoDragSettings
Creates an instance of aAutoDragSettingsrecord class.- Parameters:
nonInteractables- the value for thenonInteractablesrecord componentmakeHitboxesEveryTick- the value for themakeHitboxesEveryTickrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nonInteractables
Returns the value of thenonInteractablesrecord component.- Returns:
- the value of the
nonInteractablesrecord component
-
makeHitboxesEveryTick
public boolean makeHitboxesEveryTick()Returns the value of themakeHitboxesEveryTickrecord component.- Returns:
- the value of the
makeHitboxesEveryTickrecord component
-