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.

  • 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 a TextureRelationsSnapshot record class.
      Parameters:
      availability - the value for the availability record component
      binding - the value for the binding record component
      generation - the value for the generation record component
      revision - the value for the revision record component
      rawImages - the value for the rawImages record component
      modelImages - the value for the modelImages record component
      groups - the value for the groups record component
      artMeshInputs - the value for the artMeshInputs record component
  • Method Details

    • unavailable

      public static TextureRelationsSnapshot unavailable()
      The typed fail-closed value used by unsupported/default implementations.
    • isAvailable

      public boolean isAvailable()
      Returns whether the adapter supplied a relation projection.
    • modelImageGroups

      public List<ModelImageGroupRelation> modelImageGroups()
      Alias matching the existing texture-library terminology.
    • artMeshes

      public List<ArtMeshTextureInputs> artMeshes()
      Alias for callers that refer to ArtMeshes as drawables.
    • rawImage

      public Optional<RawImageDetails> rawImage(RawImageId id)
      Finds the first raw image with this non-null identity in this snapshot.
    • modelImage

      public Optional<ModelImageRelation> modelImage(ModelImageId id)
      Finds the first model image with this non-null identity in this snapshot.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • availability

      Returns the value of the availability record component.
      Returns:
      the value of the availability record component
    • binding

      public String binding()
      Returns the value of the binding record component.
      Returns:
      the value of the binding record component
    • generation

      public long generation()
      Returns the value of the generation record component.
      Returns:
      the value of the generation record component
    • revision

      public long revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • rawImages

      public List<RawImageDetails> rawImages()
      Returns the value of the rawImages record component.
      Returns:
      the value of the rawImages record component
    • modelImages

      public List<ModelImageRelation> modelImages()
      Returns the value of the modelImages record component.
      Returns:
      the value of the modelImages record component
    • groups

      public List<ModelImageGroupRelation> groups()
      Returns the value of the groups record component.
      Returns:
      the value of the groups record component
    • artMeshInputs

      public List<ArtMeshTextureInputs> artMeshInputs()
      Returns the value of the artMeshInputs record component.
      Returns:
      the value of the artMeshInputs record component