Record Class Track.Key
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.client.armature.anim.Track.Key
- Enclosing class:
Track
public static record Track.Key(float time, MolangExpr[] pre, MolangExpr[] post, Track.Interp interp, float @Nullable [] bezierLeftTime, float @Nullable [] bezierLeftValue, float @Nullable [] bezierRightTime, float @Nullable [] bezierRightValue)
extends Record
One keyframe.
pre is the value coming in and post going out; they differ only where the curve
jumps. Bezier handles are offsets from the keyframe, per axis, in seconds and in the channel's units.-
Constructor Summary
ConstructorsConstructorDescriptionKey(float time, MolangExpr[] pre, MolangExpr[] post, Track.Interp interp, float @Nullable [] bezierLeftTime, float @Nullable [] bezierLeftValue, float @Nullable [] bezierRightTime, float @Nullable [] bezierRightValue) Creates an instance of aKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat @Nullable []Returns the value of thebezierLeftTimerecord component.float @Nullable []Returns the value of thebezierLeftValuerecord component.float @Nullable []Returns the value of thebezierRightTimerecord component.float @Nullable []Returns the value of thebezierRightValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interp()Returns the value of theinterprecord component.static Track.Keyof(float time, MolangExpr[] value, Track.Interp interp) post()Returns the value of thepostrecord component.pre()Returns the value of theprerecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Key
public Key(float time, MolangExpr[] pre, MolangExpr[] post, Track.Interp interp, float @Nullable [] bezierLeftTime, float @Nullable [] bezierLeftValue, float @Nullable [] bezierRightTime, float @Nullable [] bezierRightValue) Creates an instance of aKeyrecord class.- Parameters:
time- the value for thetimerecord componentpre- the value for theprerecord componentpost- the value for thepostrecord componentinterp- the value for theinterprecord componentbezierLeftTime- the value for thebezierLeftTimerecord componentbezierLeftValue- the value for thebezierLeftValuerecord componentbezierRightTime- the value for thebezierRightTimerecord componentbezierRightValue- the value for thebezierRightValuerecord component
-
-
Method Details
-
of
-
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. -
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
pre
Returns the value of theprerecord component.- Returns:
- the value of the
prerecord component
-
post
Returns the value of thepostrecord component.- Returns:
- the value of the
postrecord component
-
interp
Returns the value of theinterprecord component.- Returns:
- the value of the
interprecord component
-
bezierLeftTime
public float @Nullable [] bezierLeftTime()Returns the value of thebezierLeftTimerecord component.- Returns:
- the value of the
bezierLeftTimerecord component
-
bezierLeftValue
public float @Nullable [] bezierLeftValue()Returns the value of thebezierLeftValuerecord component.- Returns:
- the value of the
bezierLeftValuerecord component
-
bezierRightTime
public float @Nullable [] bezierRightTime()Returns the value of thebezierRightTimerecord component.- Returns:
- the value of the
bezierRightTimerecord component
-
bezierRightValue
public float @Nullable [] bezierRightValue()Returns the value of thebezierRightValuerecord component.- Returns:
- the value of the
bezierRightValuerecord component
-