Record Class ModelAnimator

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelAnimator
Record Components:
name - group name
keyframes - 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 Details

    • ModelAnimator

      public ModelAnimator(@Nullable @Nullable String name, @Nullable @Nullable List<ModelKeyframe> keyframes, @Nullable @Nullable Boolean _rotationGlobal)
      Creates an instance of a ModelAnimator record class.
      Parameters:
      name - the value for the name record component
      keyframes - the value for the keyframes record component
      _rotationGlobal - the value for the _rotationGlobal record 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

      @NotNull public @NotNull String name()
      Gets name
      Returns:
      name
    • keyframes

      @NotNull public @NotNull List<ModelKeyframe> keyframes()
      Gets keyframes
      Returns:
      keyframes
    • stream

      @NotNull public @NotNull Stream<ModelKeyframe> stream()
      Gets keyframe stream
      Returns:
      stream
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • _rotationGlobal

      @Nullable @SerializedName("rotation_global") public @Nullable Boolean _rotationGlobal()
      Returns the value of the _rotationGlobal record component.
      Returns:
      the value of the _rotationGlobal record component