Package dev.gothickit.zenkit.mmb
Record Class CachedMorphMesh
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mmb.CachedMorphMesh
- All Implemented Interfaces:
CacheableObject<CachedMorphMesh>,MorphMesh
public record CachedMorphMesh(@NotNull String name, @Nullable MultiResolutionMesh mesh, @NotNull Vec3f @NotNull [] morphPositions, @NotNull List<@NotNull MorphAnimation> animations, @NotNull List<@NotNull MorphSource> sources)
extends Record
implements MorphMesh
-
Constructor Summary
ConstructorsConstructorDescriptionCachedMorphMesh(@NotNull String name, @Nullable MultiResolutionMesh mesh, @NotNull Vec3f @NotNull [] morphPositions, @NotNull List<@NotNull MorphAnimation> animations, @NotNull List<@NotNull MorphSource> sources) Creates an instance of aCachedMorphMeshrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MorphAnimationanimation(long i) long@NotNull List<@NotNull MorphAnimation>Returns the value of theanimationsrecord component.@NotNull CachedMorphMeshcache()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisCached()@Nullable MultiResolutionMeshmesh()Returns the value of themeshrecord component.@NotNull Vec3f @NotNull []Returns the value of themorphPositionsrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@Nullable MorphSourcesource(long i) long@NotNull List<@NotNull MorphSource>sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedMorphMesh
public CachedMorphMesh(@NotNull @NotNull String name, @Nullable @Nullable MultiResolutionMesh mesh, @NotNull @NotNull Vec3f @NotNull [] morphPositions, @NotNull @NotNull List<@NotNull MorphAnimation> animations, @NotNull @NotNull List<@NotNull MorphSource> sources) Creates an instance of aCachedMorphMeshrecord class.- Parameters:
name- the value for thenamerecord componentmesh- the value for themeshrecord componentmorphPositions- the value for themorphPositionsrecord componentanimations- the value for theanimationsrecord componentsources- the value for thesourcesrecord component
-
-
Method Details
-
animationCount
public long animationCount()- Specified by:
animationCountin interfaceMorphMesh
-
animation
-
sourceCount
public long sourceCount()- Specified by:
sourceCountin interfaceMorphMesh
-
source
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedMorphMesh>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedMorphMesh>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component. -
mesh
Returns the value of themeshrecord component. -
morphPositions
Returns the value of themorphPositionsrecord component.- Specified by:
morphPositionsin interfaceMorphMesh- Returns:
- the value of the
morphPositionsrecord component
-
animations
Returns the value of theanimationsrecord component.- Specified by:
animationsin interfaceMorphMesh- Returns:
- the value of the
animationsrecord component
-
sources
Returns the value of thesourcesrecord component.
-