Package dev.turboism.sdk.cubism.model
Record Class TextureRelationsSnapshot
java.lang.Object
java.lang.Record
dev.turboism.sdk.cubism.model.TextureRelationsSnapshot
@CubismEditor
public record TextureRelationsSnapshot(TextureRelationsSnapshot.Availability availability, String binding, long generation, long revision, List<RawImageDetails> rawImages, List<ModelImageRelation> modelImages, List<ModelImageGroupRelation> groups, List<ArtMeshTextureInputs> artMeshInputs)
extends Record
Immutable relation projection for one verified live Cubism model generation.
revision() is an observation revision owned by the runtime. It
is not an Undo revision, save count, or permanent host version. An
unavailable snapshot is deliberately not represented by an available empty
graph.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether the adapter can provide the verified relation graph. -
Constructor Summary
ConstructorsConstructorDescriptionTextureRelationsSnapshot(TextureRelationsSnapshot.Availability availability, String binding, long generation, long revision, List<RawImageDetails> rawImages, List<ModelImageRelation> modelImages, List<ModelImageGroupRelation> groups, List<ArtMeshTextureInputs> artMeshInputs) Creates an instance of aTextureRelationsSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionAlias for callers that refer to ArtMeshes as drawables.Returns the value of theartMeshInputsrecord component.Returns the value of theavailabilityrecord component.binding()Returns the value of thebindingrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thegenerationrecord component.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns whether the adapter supplied a relation projection.Finds the first model image with this non-null identity in this snapshot.Alias matching the existing texture-library terminology.Returns the value of themodelImagesrecord component.rawImage(RawImageId id) Finds the first raw image with this non-null identity in this snapshot.Returns the value of therawImagesrecord component.longrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.static TextureRelationsSnapshotThe typed fail-closed value used by unsupported/default implementations.
-
Constructor Details
-
TextureRelationsSnapshot
public TextureRelationsSnapshot(TextureRelationsSnapshot.Availability availability, String binding, long generation, long revision, List<RawImageDetails> rawImages, List<ModelImageRelation> modelImages, List<ModelImageGroupRelation> groups, List<ArtMeshTextureInputs> artMeshInputs) Creates an instance of aTextureRelationsSnapshotrecord class.- Parameters:
availability- the value for theavailabilityrecord componentbinding- the value for thebindingrecord componentgeneration- the value for thegenerationrecord componentrevision- the value for therevisionrecord componentrawImages- the value for therawImagesrecord componentmodelImages- the value for themodelImagesrecord componentgroups- the value for thegroupsrecord componentartMeshInputs- the value for theartMeshInputsrecord component
-
-
Method Details
-
isAvailable
public boolean isAvailable()Returns whether the adapter supplied a relation projection. -
modelImageGroups
Alias matching the existing texture-library terminology. -
artMeshes
Alias for callers that refer to ArtMeshes as drawables. -
rawImage
Finds the first raw image with this non-null identity in this snapshot. -
modelImage
Finds the first model image with this non-null identity in this snapshot. -
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 '=='. -
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
binding
Returns the value of thebindingrecord component.- Returns:
- the value of the
bindingrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
rawImages
Returns the value of therawImagesrecord component.- Returns:
- the value of the
rawImagesrecord component
-
modelImages
Returns the value of themodelImagesrecord component.- Returns:
- the value of the
modelImagesrecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
artMeshInputs
Returns the value of theartMeshInputsrecord component.- Returns:
- the value of the
artMeshInputsrecord component