Record Class EvalTween
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.animation.eval.EvalTween
- All Implemented Interfaces:
Eval
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneasing()Returns the value of theeasingrecord component.floatendValue(int charIdx) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.float[]Returns the value of theresolvedStartsrecord component.floatsample(int charIdx, float t) floatto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvalTween
Creates an instance of aEvalTweenrecord class.- Parameters:
resolvedStarts- the value for theresolvedStartsrecord componentto- the value for thetorecord componenteasing- the value for theeasingrecord component
-
-
Method Details
-
sample
-
endValue
-
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. -
resolvedStarts
public float[] resolvedStarts()Returns the value of theresolvedStartsrecord component.- Returns:
- the value of the
resolvedStartsrecord component
-
to
public float to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-