Record Class CachedModelScript

java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedModelScript
All Implemented Interfaces:
ModelScript

public record CachedModelScript(@NotNull String skeletonName, boolean skeletonMeshDisabled, @NotNull List<@NotNull AnimationCombine> animationCombines, @NotNull List<@NotNull String> meshes, @NotNull List<@NotNull String> disabledAnimations, @NotNull List<@NotNull AnimationBlend> animationBlends, @NotNull List<@NotNull AnimationAlias> animationAliases, @NotNull List<@NotNull String> modelTags, @NotNull List<@NotNull NativeAnimation> animations) extends Record implements ModelScript
  • Constructor Details

    • CachedModelScript

      public CachedModelScript(@NotNull @NotNull String skeletonName, boolean skeletonMeshDisabled, @NotNull @NotNull List<@NotNull AnimationCombine> animationCombines, @NotNull @NotNull List<@NotNull String> meshes, @NotNull @NotNull List<@NotNull String> disabledAnimations, @NotNull @NotNull List<@NotNull AnimationBlend> animationBlends, @NotNull @NotNull List<@NotNull AnimationAlias> animationAliases, @NotNull @NotNull List<@NotNull String> modelTags, @NotNull @NotNull List<@NotNull NativeAnimation> animations)
      Creates an instance of a CachedModelScript record class.
      Parameters:
      skeletonName - the value for the skeletonName record component
      skeletonMeshDisabled - the value for the skeletonMeshDisabled record component
      animationCombines - the value for the animationCombines record component
      meshes - the value for the meshes record component
      disabledAnimations - the value for the disabledAnimations record component
      animationBlends - the value for the animationBlends record component
      animationAliases - the value for the animationAliases record component
      modelTags - the value for the modelTags record component
      animations - the value for the animations record component
  • Method Details

    • meshCount

      public long meshCount()
      Specified by:
      meshCount in interface ModelScript
    • disabledAnimationsCount

      public long disabledAnimationsCount()
      Specified by:
      disabledAnimationsCount in interface ModelScript
    • animationCombineCount

      public long animationCombineCount()
      Specified by:
      animationCombineCount in interface ModelScript
    • animationBlendCount

      public long animationBlendCount()
      Specified by:
      animationBlendCount in interface ModelScript
    • animationAliasCount

      public long animationAliasCount()
      Specified by:
      animationAliasCount in interface ModelScript
    • modelTagCount

      public long modelTagCount()
      Specified by:
      modelTagCount in interface ModelScript
    • animationCount

      public long animationCount()
      Specified by:
      animationCount in interface ModelScript
    • disabledAnimation

      @Nullable public @Nullable String disabledAnimation(long i)
      Specified by:
      disabledAnimation in interface ModelScript
    • mesh

      @Nullable public @Nullable String mesh(long i)
      Specified by:
      mesh in interface ModelScript
    • animationCombine

      @Nullable public @Nullable AnimationCombine animationCombine(long i)
      Specified by:
      animationCombine in interface ModelScript
    • animationBlend

      @Nullable public @Nullable AnimationBlend animationBlend(long i)
      Specified by:
      animationBlend in interface ModelScript
    • animationAlias

      @Nullable public @Nullable AnimationAlias animationAlias(long i)
      Specified by:
      animationAlias in interface ModelScript
    • modelTag

      @Nullable public @Nullable String modelTag(long i)
      Specified by:
      modelTag in interface ModelScript
    • animation

      @Nullable public @Nullable NativeAnimation animation(long i)
      Specified by:
      animation in interface ModelScript
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • skeletonName

      @NotNull public @NotNull String skeletonName()
      Returns the value of the skeletonName record component.
      Specified by:
      skeletonName in interface ModelScript
      Returns:
      the value of the skeletonName record component
    • skeletonMeshDisabled

      public boolean skeletonMeshDisabled()
      Returns the value of the skeletonMeshDisabled record component.
      Specified by:
      skeletonMeshDisabled in interface ModelScript
      Returns:
      the value of the skeletonMeshDisabled record component
    • animationCombines

      @NotNull public @NotNull List<@NotNull AnimationCombine> animationCombines()
      Returns the value of the animationCombines record component.
      Specified by:
      animationCombines in interface ModelScript
      Returns:
      the value of the animationCombines record component
    • meshes

      @NotNull public @NotNull List<@NotNull String> meshes()
      Returns the value of the meshes record component.
      Specified by:
      meshes in interface ModelScript
      Returns:
      the value of the meshes record component
    • disabledAnimations

      @NotNull public @NotNull List<@NotNull String> disabledAnimations()
      Returns the value of the disabledAnimations record component.
      Specified by:
      disabledAnimations in interface ModelScript
      Returns:
      the value of the disabledAnimations record component
    • animationBlends

      @NotNull public @NotNull List<@NotNull AnimationBlend> animationBlends()
      Returns the value of the animationBlends record component.
      Specified by:
      animationBlends in interface ModelScript
      Returns:
      the value of the animationBlends record component
    • animationAliases

      @NotNull public @NotNull List<@NotNull AnimationAlias> animationAliases()
      Returns the value of the animationAliases record component.
      Specified by:
      animationAliases in interface ModelScript
      Returns:
      the value of the animationAliases record component
    • modelTags

      @NotNull public @NotNull List<@NotNull String> modelTags()
      Returns the value of the modelTags record component.
      Specified by:
      modelTags in interface ModelScript
      Returns:
      the value of the modelTags record component
    • animations

      @NotNull public @NotNull List<@NotNull NativeAnimation> animations()
      Returns the value of the animations record component.
      Specified by:
      animations in interface ModelScript
      Returns:
      the value of the animations record component