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_rotationGlobal- rotation global
@Internal
public record ModelAnimator(@Nullable String name, @Nullable List<ModelKeyframe> keyframes, @Nullable Boolean _rotationGlobal)
extends Record
A raw model animator.
-
Constructor Summary
ConstructorsConstructorDescriptionModelAnimator(@Nullable String name, @Nullable List<ModelKeyframe> keyframes, @Nullable Boolean _rotationGlobal) Creates an instance of aModelAnimatorrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanReturns the value of the_rotationGlobalrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanChecks this animator is availablebooleanChecks this animator is not empty@NotNull List<ModelKeyframe> Gets keyframes@NotNull Stringname()Gets namebooleanGets rotation global@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, @Nullable @Nullable Boolean _rotationGlobal) Creates an instance of aModelAnimatorrecord class.- Parameters:
name- the value for thenamerecord componentkeyframes- the value for thekeyframesrecord component_rotationGlobal- the value for the_rotationGlobalrecord component
-
-
Method Details
-
rotationGlobal
public boolean rotationGlobal()Gets rotation global- Returns:
- rotation global
-
isAvailable
public boolean isAvailable()Checks this animator is available- Returns:
- is available
-
isNotEmpty
public boolean isNotEmpty()Checks this animator is not empty- Returns:
- is not empty
-
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). -
_rotationGlobal
Returns the value of the_rotationGlobalrecord component.- Returns:
- the value of the
_rotationGlobalrecord component
-