Record Class MovementState.MovementTarget
java.lang.Object
java.lang.Record
com.zenith.feature.pathfinder.movement.MovementState.MovementTarget
- Enclosing class:
MovementState
-
Constructor Summary
ConstructorsConstructorDescriptionMovementTarget(@Nullable Rotation rotation, boolean forceRotations) Creates an instance of aMovementTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceRotationsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Rotationrotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MovementTarget
public MovementTarget() -
MovementTarget
Creates an instance of aMovementTargetrecord class.- Parameters:
rotation- the value for therotationrecord componentforceRotations- the value for theforceRotationsrecord 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. -
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
forceRotations
public boolean forceRotations()Returns the value of theforceRotationsrecord component.- Returns:
- the value of the
forceRotationsrecord component
-