Package dev.gothickit.zenkit.mds
Record Class CachedAnimationCombine
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedAnimationCombine
- All Implemented Interfaces:
CacheableObject<CachedAnimationCombine>,AnimationCombine
public record CachedAnimationCombine(@NotNull String name, int layer, @NotNull String next, float blendIn, float blendOut, @NotNull EnumSet<AnimationFlag> flags, @NotNull String model, int lastFrame)
extends Record
implements AnimationCombine
-
Constructor Summary
ConstructorsConstructorDescriptionCachedAnimationCombine(@NotNull String name, int layer, @NotNull String next, float blendIn, float blendOut, @NotNull EnumSet<AnimationFlag> flags, @NotNull String model, int lastFrame) Creates an instance of aCachedAnimationCombinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatblendIn()Returns the value of theblendInrecord component.floatblendOut()Returns the value of theblendOutrecord component.@NotNull CachedAnimationCombinecache()final booleanIndicates whether some other object is "equal to" this one.@NotNull EnumSet<AnimationFlag>flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleanisCached()intReturns the value of thelastFramerecord component.intlayer()Returns the value of thelayerrecord component.@NotNull Stringmodel()Returns the value of themodelrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Stringnext()Returns the value of thenextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedAnimationCombine
public CachedAnimationCombine(@NotNull @NotNull String name, int layer, @NotNull @NotNull String next, float blendIn, float blendOut, @NotNull @NotNull EnumSet<AnimationFlag> flags, @NotNull @NotNull String model, int lastFrame) Creates an instance of aCachedAnimationCombinerecord class.- Parameters:
name- the value for thenamerecord componentlayer- the value for thelayerrecord componentnext- the value for thenextrecord componentblendIn- the value for theblendInrecord componentblendOut- the value for theblendOutrecord componentflags- the value for theflagsrecord componentmodel- the value for themodelrecord componentlastFrame- the value for thelastFramerecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedAnimationCombine>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedAnimationCombine>
-
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 '=='. -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceAnimationCombine- Returns:
- the value of the
namerecord component
-
layer
public int layer()Returns the value of thelayerrecord component.- Specified by:
layerin interfaceAnimationCombine- Returns:
- the value of the
layerrecord component
-
next
Returns the value of thenextrecord component.- Specified by:
nextin interfaceAnimationCombine- Returns:
- the value of the
nextrecord component
-
blendIn
public float blendIn()Returns the value of theblendInrecord component.- Specified by:
blendInin interfaceAnimationCombine- Returns:
- the value of the
blendInrecord component
-
blendOut
public float blendOut()Returns the value of theblendOutrecord component.- Specified by:
blendOutin interfaceAnimationCombine- Returns:
- the value of the
blendOutrecord component
-
flags
Returns the value of theflagsrecord component.- Specified by:
flagsin interfaceAnimationCombine- Returns:
- the value of the
flagsrecord component
-
model
Returns the value of themodelrecord component.- Specified by:
modelin interfaceAnimationCombine- Returns:
- the value of the
modelrecord component
-
lastFrame
public int lastFrame()Returns the value of thelastFramerecord component.- Specified by:
lastFramein interfaceAnimationCombine- Returns:
- the value of the
lastFramerecord component
-