Record Class KeyframeSequence.InterpolationContext<T>
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.particle.data.KeyframeSequence.InterpolationContext<T>
- Enclosing class:
KeyframeSequence<T>
-
Constructor Summary
ConstructorsConstructorDescriptionInterpolationContext(T start, T end, float localProgress, Easing easing) Creates an instance of aInterpolationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloateased()easing()Returns the value of theeasingrecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelocalProgressrecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InterpolationContext
Creates an instance of aInterpolationContextrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentlocalProgress- the value for thelocalProgressrecord componenteasing- the value for theeasingrecord component
-
-
Method Details
-
eased
public float eased() -
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. -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
localProgress
public float localProgress()Returns the value of thelocalProgressrecord component.- Returns:
- the value of the
localProgressrecord component
-
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-