Package dev.gothickit.zenkit.mds
Record Class CachedAnimationAlias
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedAnimationAlias
- All Implemented Interfaces:
CacheableObject<CachedAnimationAlias>,AnimationAlias
public record CachedAnimationAlias(@NotNull String name, int layer, @NotNull String next, float blendIn, float blendOut, @NotNull EnumSet<AnimationFlag> flags, @NotNull String alias, @NotNull AnimationDirection direction)
extends Record
implements AnimationAlias
-
Constructor Summary
ConstructorsConstructorDescriptionCachedAnimationAlias(@NotNull String name, int layer, @NotNull String next, float blendIn, float blendOut, @NotNull EnumSet<AnimationFlag> flags, @NotNull String alias, @NotNull AnimationDirection direction) Creates an instance of aCachedAnimationAliasrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringalias()Returns the value of thealiasrecord component.floatblendIn()Returns the value of theblendInrecord component.floatblendOut()Returns the value of theblendOutrecord component.@NotNull CachedAnimationAliascache()@NotNull AnimationDirectionReturns the value of thedirectionrecord component.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()intlayer()Returns the value of thelayerrecord 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
-
CachedAnimationAlias
public CachedAnimationAlias(@NotNull @NotNull String name, int layer, @NotNull @NotNull String next, float blendIn, float blendOut, @NotNull @NotNull EnumSet<AnimationFlag> flags, @NotNull @NotNull String alias, @NotNull @NotNull AnimationDirection direction) Creates an instance of aCachedAnimationAliasrecord 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 componentalias- the value for thealiasrecord componentdirection- the value for thedirectionrecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedAnimationAlias>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedAnimationAlias>
-
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 interfaceAnimationAlias- Returns:
- the value of the
namerecord component
-
layer
public int layer()Returns the value of thelayerrecord component.- Specified by:
layerin interfaceAnimationAlias- Returns:
- the value of the
layerrecord component
-
next
Returns the value of thenextrecord component.- Specified by:
nextin interfaceAnimationAlias- Returns:
- the value of the
nextrecord component
-
blendIn
public float blendIn()Returns the value of theblendInrecord component.- Specified by:
blendInin interfaceAnimationAlias- Returns:
- the value of the
blendInrecord component
-
blendOut
public float blendOut()Returns the value of theblendOutrecord component.- Specified by:
blendOutin interfaceAnimationAlias- Returns:
- the value of the
blendOutrecord component
-
flags
Returns the value of theflagsrecord component.- Specified by:
flagsin interfaceAnimationAlias- Returns:
- the value of the
flagsrecord component
-
alias
Returns the value of thealiasrecord component.- Specified by:
aliasin interfaceAnimationAlias- Returns:
- the value of the
aliasrecord component
-
direction
Returns the value of thedirectionrecord component.- Specified by:
directionin interfaceAnimationAlias- Returns:
- the value of the
directionrecord component
-