Package dev.gothickit.zenkit.mmb
Record Class CachedMorphAnimation
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mmb.CachedMorphAnimation
- All Implemented Interfaces:
CacheableObject<CachedMorphAnimation>,MorphAnimation
public record CachedMorphAnimation(@NotNull String name, int layer, float blendIn, float blendOut, float duration, float speed, byte flags, int frameCount, int @NotNull [] vertices, @NotNull Vec3f @NotNull [] samples)
extends Record
implements MorphAnimation
-
Constructor Summary
ConstructorsConstructorDescriptionCachedMorphAnimation(@NotNull String name, int layer, float blendIn, float blendOut, float duration, float speed, byte flags, int frameCount, int @NotNull [] vertices, @NotNull Vec3f @NotNull [] samples) Creates an instance of aCachedMorphAnimationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatblendIn()Returns the value of theblendInrecord component.floatblendOut()Returns the value of theblendOutrecord component.@NotNull CachedMorphAnimationcache()floatduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.intReturns the value of theframeCountrecord 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 Vec3f @NotNull []samples()Returns the value of thesamplesrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.int @NotNull []vertices()Returns the value of theverticesrecord component.
-
Constructor Details
-
CachedMorphAnimation
public CachedMorphAnimation(@NotNull @NotNull String name, int layer, float blendIn, float blendOut, float duration, float speed, byte flags, int frameCount, int @NotNull [] vertices, @NotNull @NotNull Vec3f @NotNull [] samples) Creates an instance of aCachedMorphAnimationrecord class.- Parameters:
name- the value for thenamerecord componentlayer- the value for thelayerrecord componentblendIn- the value for theblendInrecord componentblendOut- the value for theblendOutrecord componentduration- the value for thedurationrecord componentspeed- the value for thespeedrecord componentflags- the value for theflagsrecord componentframeCount- the value for theframeCountrecord componentvertices- the value for theverticesrecord componentsamples- the value for thesamplesrecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedMorphAnimation>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedMorphAnimation>
-
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 interfaceMorphAnimation- Returns:
- the value of the
namerecord component
-
layer
public int layer()Returns the value of thelayerrecord component.- Specified by:
layerin interfaceMorphAnimation- Returns:
- the value of the
layerrecord component
-
blendIn
public float blendIn()Returns the value of theblendInrecord component.- Specified by:
blendInin interfaceMorphAnimation- Returns:
- the value of the
blendInrecord component
-
blendOut
public float blendOut()Returns the value of theblendOutrecord component.- Specified by:
blendOutin interfaceMorphAnimation- Returns:
- the value of the
blendOutrecord component
-
duration
public float duration()Returns the value of thedurationrecord component.- Specified by:
durationin interfaceMorphAnimation- Returns:
- the value of the
durationrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Specified by:
speedin interfaceMorphAnimation- Returns:
- the value of the
speedrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Specified by:
flagsin interfaceMorphAnimation- Returns:
- the value of the
flagsrecord component
-
frameCount
public int frameCount()Returns the value of theframeCountrecord component.- Specified by:
frameCountin interfaceMorphAnimation- Returns:
- the value of the
frameCountrecord component
-
vertices
public int @NotNull [] vertices()Returns the value of theverticesrecord component.- Specified by:
verticesin interfaceMorphAnimation- Returns:
- the value of the
verticesrecord component
-
samples
Returns the value of thesamplesrecord component.- Specified by:
samplesin interfaceMorphAnimation- Returns:
- the value of the
samplesrecord component
-