Package kr.toxicity.model.api.data.raw
Record Class ModelAnimator
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelAnimator
- Record Components:
name- group namekeyframes- keyframes
@Internal
public record ModelAnimator(@Nullable String name, @Nullable List<ModelKeyframe> keyframes)
extends Record
A raw model animator.
-
Constructor Summary
ConstructorsConstructorDescriptionModelAnimator(@Nullable String name, @Nullable List<ModelKeyframe> keyframes) Creates an instance of aModelAnimatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanChecks this animator is available@NotNull List<ModelKeyframe> Gets keyframes@NotNull Stringname()Gets name@NotNull Stream<ModelKeyframe> stream()Gets keyframe streamfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelAnimator
public ModelAnimator(@Nullable @Nullable String name, @Nullable @Nullable List<ModelKeyframe> keyframes) Creates an instance of aModelAnimatorrecord class.
-
-
Method Details
-
isAvailable
public boolean isAvailable()Checks this animator is available- Returns:
- is available
-
name
Gets name- Returns:
- name
-
keyframes
Gets keyframes- Returns:
- keyframes
-
stream
Gets keyframe stream- Returns:
- stream
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object).
-