Record Class Stagger
java.lang.Object
java.lang.Record
cromveil.combatnumbers.animation.Stagger
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStagger(float delayMs, Stagger.StaggerFrom from) Stagger(float delayMs, Stagger.StaggerFrom from, Easing easing) Creates an instance of aStaggerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]computeDelays(int charCount) floatdelayMs()Returns the value of thedelayMsrecord component.easing()Returns the value of theeasingrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Stagger
Creates an instance of aStaggerrecord class.- Parameters:
delayMs- the value for thedelayMsrecord componentfrom- the value for thefromrecord componenteasing- the value for theeasingrecord component
-
Stagger
-
-
Method Details
-
computeDelays
public float[] computeDelays(int charCount) -
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. -
delayMs
public float delayMs()Returns the value of thedelayMsrecord component.- Returns:
- the value of the
delayMsrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-