Package dev.gothickit.zenkit.mds
Record Class CachedAnimation
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedAnimation
- All Implemented Interfaces:
CacheableObject<CachedAnimation>,Animation
public record CachedAnimation(@NotNull String name, int layer, @NotNull String next, float blendIn, float blendOut, EnumSet<AnimationFlag> flags, @NotNull String model, @NotNull AnimationDirection direction, int firstFrame, int lastFrame, float fps, float speed, float collisionVolumeScale, @NotNull List<@NotNull EventTag> eventTags, @NotNull List<@NotNull EventParticleEffect> particleEffects, @NotNull List<@NotNull EventParticleEffectStop> particleEffectsStop, @NotNull List<@NotNull EventSoundEffect> soundEffects, @NotNull List<@NotNull EventSoundEffectGround> soundEffectsGround, @NotNull List<@NotNull EventMorphAnimation> morphAnimations, @NotNull List<@NotNull EventCameraTremor> cameraTremors)
extends Record
implements Animation
-
Constructor Summary
ConstructorsConstructorDescriptionCachedAnimation(@NotNull String name, int layer, @NotNull String next, float blendIn, float blendOut, EnumSet<AnimationFlag> flags, @NotNull String model, @NotNull AnimationDirection direction, int firstFrame, int lastFrame, float fps, float speed, float collisionVolumeScale, @NotNull List<@NotNull EventTag> eventTags, @NotNull List<@NotNull EventParticleEffect> particleEffects, @NotNull List<@NotNull EventParticleEffectStop> particleEffectsStop, @NotNull List<@NotNull EventSoundEffect> soundEffects, @NotNull List<@NotNull EventSoundEffectGround> soundEffectsGround, @NotNull List<@NotNull EventMorphAnimation> morphAnimations, @NotNull List<@NotNull EventCameraTremor> cameraTremors) Creates an instance of aCachedAnimationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatblendIn()Returns the value of theblendInrecord component.floatblendOut()Returns the value of theblendOutrecord component.@NotNull CachedAnimationcache()@Nullable EventCameraTremorcameraTremor(long i) long@NotNull List<@NotNull EventCameraTremor>Returns the value of thecameraTremorsrecord component.floatReturns the value of thecollisionVolumeScalerecord component.@NotNull AnimationDirectionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable EventTageventTag(long i) longReturns the value of theeventTagsrecord component.intReturns the value of thefirstFramerecord component.flags()Returns the value of theflagsrecord component.floatfps()Returns the value of thefpsrecord 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.@Nullable EventMorphAnimationmorphAnimation(long i) long@NotNull List<@NotNull EventMorphAnimation>Returns the value of themorphAnimationsrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Stringnext()Returns the value of thenextrecord component.@Nullable EventParticleEffectparticleEffect(long i) long@NotNull List<@NotNull EventParticleEffect>Returns the value of theparticleEffectsrecord component.@NotNull List<@NotNull EventParticleEffectStop>Returns the value of theparticleEffectsStoprecord component.@Nullable EventParticleEffectStopparticleEffectStop(long i) long@Nullable EventSoundEffectsoundEffect(long i) long@Nullable EventSoundEffectGroundsoundEffectGround(long i) long@NotNull List<@NotNull EventSoundEffect>Returns the value of thesoundEffectsrecord component.@NotNull List<@NotNull EventSoundEffectGround>Returns the value of thesoundEffectsGroundrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedAnimation
public CachedAnimation(@NotNull @NotNull String name, int layer, @NotNull @NotNull String next, float blendIn, float blendOut, EnumSet<AnimationFlag> flags, @NotNull @NotNull String model, @NotNull @NotNull AnimationDirection direction, int firstFrame, int lastFrame, float fps, float speed, float collisionVolumeScale, @NotNull @NotNull List<@NotNull EventTag> eventTags, @NotNull @NotNull List<@NotNull EventParticleEffect> particleEffects, @NotNull @NotNull List<@NotNull EventParticleEffectStop> particleEffectsStop, @NotNull @NotNull List<@NotNull EventSoundEffect> soundEffects, @NotNull @NotNull List<@NotNull EventSoundEffectGround> soundEffectsGround, @NotNull @NotNull List<@NotNull EventMorphAnimation> morphAnimations, @NotNull @NotNull List<@NotNull EventCameraTremor> cameraTremors) Creates an instance of aCachedAnimationrecord 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 componentdirection- the value for thedirectionrecord componentfirstFrame- the value for thefirstFramerecord componentlastFrame- the value for thelastFramerecord componentfps- the value for thefpsrecord componentspeed- the value for thespeedrecord componentcollisionVolumeScale- the value for thecollisionVolumeScalerecord componenteventTags- the value for theeventTagsrecord componentparticleEffects- the value for theparticleEffectsrecord componentparticleEffectsStop- the value for theparticleEffectsStoprecord componentsoundEffects- the value for thesoundEffectsrecord componentsoundEffectsGround- the value for thesoundEffectsGroundrecord componentmorphAnimations- the value for themorphAnimationsrecord componentcameraTremors- the value for thecameraTremorsrecord component
-
-
Method Details
-
eventTagCount
public long eventTagCount()- Specified by:
eventTagCountin interfaceAnimation
-
particleEffectCount
public long particleEffectCount()- Specified by:
particleEffectCountin interfaceAnimation
-
particleEffectStopCount
public long particleEffectStopCount()- Specified by:
particleEffectStopCountin interfaceAnimation
-
soundEffectCount
public long soundEffectCount()- Specified by:
soundEffectCountin interfaceAnimation
-
soundEffectGroundCount
public long soundEffectGroundCount()- Specified by:
soundEffectGroundCountin interfaceAnimation
-
morphAnimationCount
public long morphAnimationCount()- Specified by:
morphAnimationCountin interfaceAnimation
-
cameraTremorCount
public long cameraTremorCount()- Specified by:
cameraTremorCountin interfaceAnimation
-
eventTag
-
particleEffect
- Specified by:
particleEffectin interfaceAnimation
-
particleEffectStop
- Specified by:
particleEffectStopin interfaceAnimation
-
soundEffect
- Specified by:
soundEffectin interfaceAnimation
-
soundEffectGround
- Specified by:
soundEffectGroundin interfaceAnimation
-
morphAnimation
- Specified by:
morphAnimationin interfaceAnimation
-
cameraTremor
- Specified by:
cameraTremorin interfaceAnimation
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedAnimation>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedAnimation>
-
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. -
layer
public int layer()Returns the value of thelayerrecord component. -
next
Returns the value of thenextrecord component. -
blendIn
public float blendIn()Returns the value of theblendInrecord component. -
blendOut
public float blendOut()Returns the value of theblendOutrecord component. -
flags
Returns the value of theflagsrecord component. -
model
Returns the value of themodelrecord component. -
direction
Returns the value of thedirectionrecord component. -
firstFrame
public int firstFrame()Returns the value of thefirstFramerecord component.- Specified by:
firstFramein interfaceAnimation- Returns:
- the value of the
firstFramerecord component
-
lastFrame
public int lastFrame()Returns the value of thelastFramerecord component. -
fps
public float fps()Returns the value of thefpsrecord component. -
speed
public float speed()Returns the value of thespeedrecord component. -
collisionVolumeScale
public float collisionVolumeScale()Returns the value of thecollisionVolumeScalerecord component.- Specified by:
collisionVolumeScalein interfaceAnimation- Returns:
- the value of the
collisionVolumeScalerecord component
-
eventTags
Returns the value of theeventTagsrecord component. -
particleEffects
Returns the value of theparticleEffectsrecord component.- Specified by:
particleEffectsin interfaceAnimation- Returns:
- the value of the
particleEffectsrecord component
-
particleEffectsStop
Returns the value of theparticleEffectsStoprecord component.- Specified by:
particleEffectsStopin interfaceAnimation- Returns:
- the value of the
particleEffectsStoprecord component
-
soundEffects
Returns the value of thesoundEffectsrecord component.- Specified by:
soundEffectsin interfaceAnimation- Returns:
- the value of the
soundEffectsrecord component
-
soundEffectsGround
Returns the value of thesoundEffectsGroundrecord component.- Specified by:
soundEffectsGroundin interfaceAnimation- Returns:
- the value of the
soundEffectsGroundrecord component
-
morphAnimations
Returns the value of themorphAnimationsrecord component.- Specified by:
morphAnimationsin interfaceAnimation- Returns:
- the value of the
morphAnimationsrecord component
-
cameraTremors
Returns the value of thecameraTremorsrecord component.- Specified by:
cameraTremorsin interfaceAnimation- Returns:
- the value of the
cameraTremorsrecord component
-