Record Class EvalKeyframe
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.animation.eval.EvalKeyframe
- All Implemented Interfaces:
Eval
public record EvalKeyframe(float[] resolvedStarts, KeyframeDef[] sortedKeyframes, Easing fallbackEasing, float firstValue, float lastValue)
extends Record
implements Eval
-
Constructor Summary
ConstructorsConstructorDescriptionEvalKeyframe(float[] resolvedStarts, KeyframeDef[] sortedKeyframes, Easing fallbackEasing, float firstValue, float lastValue) Creates an instance of aEvalKeyframerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatendValue(int charIdx) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackEasingrecord component.floatReturns the value of thefirstValuerecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelastValuerecord component.float[]Returns the value of theresolvedStartsrecord component.floatsample(int charIdx, float t) Returns the value of thesortedKeyframesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvalKeyframe
public EvalKeyframe(float[] resolvedStarts, KeyframeDef[] sortedKeyframes, Easing fallbackEasing, float firstValue, float lastValue) Creates an instance of aEvalKeyframerecord class.- Parameters:
resolvedStarts- the value for theresolvedStartsrecord componentsortedKeyframes- the value for thesortedKeyframesrecord componentfallbackEasing- the value for thefallbackEasingrecord componentfirstValue- the value for thefirstValuerecord componentlastValue- the value for thelastValuerecord 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
-
sortedKeyframes
Returns the value of thesortedKeyframesrecord component.- Returns:
- the value of the
sortedKeyframesrecord component
-
fallbackEasing
Returns the value of thefallbackEasingrecord component.- Returns:
- the value of the
fallbackEasingrecord component
-
firstValue
public float firstValue()Returns the value of thefirstValuerecord component.- Returns:
- the value of the
firstValuerecord component
-
lastValue
public float lastValue()Returns the value of thelastValuerecord component.- Returns:
- the value of the
lastValuerecord component
-