Package dev.gothickit.zenkit.mds
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 Summary
ConstructorsConstructorDescriptionCachedModelScript(@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) Creates an instance of aCachedModelScriptrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable NativeAnimationanimation(long i) @Nullable AnimationAliasanimationAlias(long i) long@NotNull List<@NotNull AnimationAlias>Returns the value of theanimationAliasesrecord component.@Nullable AnimationBlendanimationBlend(long i) long@NotNull List<@NotNull AnimationBlend>Returns the value of theanimationBlendsrecord component.@Nullable AnimationCombineanimationCombine(long i) long@NotNull List<@NotNull AnimationCombine>Returns the value of theanimationCombinesrecord component.long@NotNull List<@NotNull NativeAnimation>Returns the value of theanimationsrecord component.@Nullable StringdisabledAnimation(long i) Returns the value of thedisabledAnimationsrecord component.longfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringmesh(long i) longmeshes()Returns the value of themeshesrecord component.@Nullable StringmodelTag(long i) longReturns the value of themodelTagsrecord component.booleanReturns the value of theskeletonMeshDisabledrecord component.@NotNull StringReturns the value of theskeletonNamerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aCachedModelScriptrecord class.- Parameters:
skeletonName- the value for theskeletonNamerecord componentskeletonMeshDisabled- the value for theskeletonMeshDisabledrecord componentanimationCombines- the value for theanimationCombinesrecord componentmeshes- the value for themeshesrecord componentdisabledAnimations- the value for thedisabledAnimationsrecord componentanimationBlends- the value for theanimationBlendsrecord componentanimationAliases- the value for theanimationAliasesrecord componentmodelTags- the value for themodelTagsrecord componentanimations- the value for theanimationsrecord component
-
-
Method Details
-
meshCount
public long meshCount()- Specified by:
meshCountin interfaceModelScript
-
disabledAnimationsCount
public long disabledAnimationsCount()- Specified by:
disabledAnimationsCountin interfaceModelScript
-
animationCombineCount
public long animationCombineCount()- Specified by:
animationCombineCountin interfaceModelScript
-
animationBlendCount
public long animationBlendCount()- Specified by:
animationBlendCountin interfaceModelScript
-
animationAliasCount
public long animationAliasCount()- Specified by:
animationAliasCountin interfaceModelScript
-
modelTagCount
public long modelTagCount()- Specified by:
modelTagCountin interfaceModelScript
-
animationCount
public long animationCount()- Specified by:
animationCountin interfaceModelScript
-
disabledAnimation
- Specified by:
disabledAnimationin interfaceModelScript
-
mesh
- Specified by:
meshin interfaceModelScript
-
animationCombine
- Specified by:
animationCombinein interfaceModelScript
-
animationBlend
- Specified by:
animationBlendin interfaceModelScript
-
animationAlias
- Specified by:
animationAliasin interfaceModelScript
-
modelTag
- Specified by:
modelTagin interfaceModelScript
-
animation
- Specified by:
animationin interfaceModelScript
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
skeletonName
Returns the value of theskeletonNamerecord component.- Specified by:
skeletonNamein interfaceModelScript- Returns:
- the value of the
skeletonNamerecord component
-
skeletonMeshDisabled
public boolean skeletonMeshDisabled()Returns the value of theskeletonMeshDisabledrecord component.- Specified by:
skeletonMeshDisabledin interfaceModelScript- Returns:
- the value of the
skeletonMeshDisabledrecord component
-
animationCombines
Returns the value of theanimationCombinesrecord component.- Specified by:
animationCombinesin interfaceModelScript- Returns:
- the value of the
animationCombinesrecord component
-
meshes
Returns the value of themeshesrecord component.- Specified by:
meshesin interfaceModelScript- Returns:
- the value of the
meshesrecord component
-
disabledAnimations
Returns the value of thedisabledAnimationsrecord component.- Specified by:
disabledAnimationsin interfaceModelScript- Returns:
- the value of the
disabledAnimationsrecord component
-
animationBlends
Returns the value of theanimationBlendsrecord component.- Specified by:
animationBlendsin interfaceModelScript- Returns:
- the value of the
animationBlendsrecord component
-
animationAliases
Returns the value of theanimationAliasesrecord component.- Specified by:
animationAliasesin interfaceModelScript- Returns:
- the value of the
animationAliasesrecord component
-
modelTags
Returns the value of themodelTagsrecord component.- Specified by:
modelTagsin interfaceModelScript- Returns:
- the value of the
modelTagsrecord component
-
animations
Returns the value of theanimationsrecord component.- Specified by:
animationsin interfaceModelScript- Returns:
- the value of the
animationsrecord component
-