Record Class CompiledStep
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.animation.CompiledStep
public record CompiledStep(Eval eval, float offsetMs, float durationMs, int plays, ComposeMode compose, Playback playback, float[] staggerDelays)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledStep(Eval eval, float offsetMs, float durationMs, int plays, ComposeMode compose, Playback playback, float[] staggerDelays) Creates an instance of aCompiledSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompose()Returns the value of thecomposerecord component.floatReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.eval()Returns the value of theevalrecord component.floatevaluate(int charIdx, float elapsedMs) final inthashCode()Returns a hash code value for this object.floatoffsetMs()Returns the value of theoffsetMsrecord component.playback()Returns the value of theplaybackrecord component.intplays()Returns the value of theplaysrecord component.float[]Returns the value of thestaggerDelaysrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompiledStep
public CompiledStep(Eval eval, float offsetMs, float durationMs, int plays, ComposeMode compose, Playback playback, float[] staggerDelays) Creates an instance of aCompiledSteprecord class.- Parameters:
eval- the value for theevalrecord componentoffsetMs- the value for theoffsetMsrecord componentdurationMs- the value for thedurationMsrecord componentplays- the value for theplaysrecord componentcompose- the value for thecomposerecord componentplayback- the value for theplaybackrecord componentstaggerDelays- the value for thestaggerDelaysrecord component
-
-
Method Details
-
evaluate
public float evaluate(int charIdx, float elapsedMs) -
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. -
eval
Returns the value of theevalrecord component.- Returns:
- the value of the
evalrecord component
-
offsetMs
public float offsetMs()Returns the value of theoffsetMsrecord component.- Returns:
- the value of the
offsetMsrecord component
-
durationMs
public float durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
plays
public int plays()Returns the value of theplaysrecord component.- Returns:
- the value of the
playsrecord component
-
compose
Returns the value of thecomposerecord component.- Returns:
- the value of the
composerecord component
-
playback
Returns the value of theplaybackrecord component.- Returns:
- the value of the
playbackrecord component
-
staggerDelays
public float[] staggerDelays()Returns the value of thestaggerDelaysrecord component.- Returns:
- the value of the
staggerDelaysrecord component
-