Record Class ArmatureMesh.Group
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.client.armature.ArmatureMesh.Group
- Record Components:
texture- the armature's texture slotbyJoint- each joint's faces, null where a joint has none in this groupskin- cloth: for the joints of a sheet, each face's corners weighed between joints (ArmatureCloth); null where a joint is drawn rigidly, or null altogether
- Enclosing class:
ArmatureMesh
public static record ArmatureMesh.Group(int texture, ArmatureMaterial material, float[][] byJoint, float @Nullable [][] skin)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFloats of skin per corner: influences of (joint, weight, x, y, z).static final intFloats of skin per face. -
Constructor Summary
ConstructorsConstructorDescriptionGroup(int texture, ArmatureMaterial material, float[][] byJoint) Group(int texture, ArmatureMaterial material, float[][] byJoint, float @Nullable [][] skin) Creates an instance of aGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[][]byJoint()Returns the value of thebyJointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.material()Returns the value of thematerialrecord component.float @Nullable [][]skin()Returns the value of theskinrecord component.inttexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SKIN_FACE
public static final int SKIN_FACEFloats of skin per face.- See Also:
-
SKIN_CORNER
public static final int SKIN_CORNERFloats of skin per corner: influences of (joint, weight, x, y, z).- See Also:
-
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
texture
-
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
byJoint
-
skin
-