Class ArmatureData
java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.ArmatureData
A model as a file reader leaves it: joints, faces, points, textures and clips, all in Blockbench's own axes (model
pixels, Y up, facing north).
ArmatureLibrary bakes it.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne side of a cube: the texture rectangle(u0,v0)-(u1,v1)(0 to 1; u0 > u1 mirrors) and how many quarter turns clockwise it is rotated.static final classFour corners in order around the face (a triangle repeats its last), with texture coordinates from 0 to 1.static final classstatic final classstatic final recordA texture slot: pixels inside the model file, or a texture in a resource pack. -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanA Java block model, whose origin is the corner of the block rather than the middle of its base.final List<ClipSource> final List<ArmatureData.Face> final List<ArmatureData.JointData> final List<ArmatureData.PointData> final List<ArmatureData.TextureData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCube(int joint, org.joml.Vector3f from, org.joml.Vector3f to, float inflate, org.joml.Vector3f origin, org.joml.Vector3f rotationRadians, Map<net.minecraft.core.Direction, ArmatureData.CubeFace> faces) Makes the six faces of a cube (or fewer: faces given no texture are left out).intJoints by name, for animation files and definitions that name them.int[]Joints so that parents come before children (Bedrock files list bones in any order).
-
Field Details
-
joints
-
faces
-
points
-
textures
-
clips
-
blockOrigin
public boolean blockOriginA Java block model, whose origin is the corner of the block rather than the middle of its base.
-
-
Constructor Details
-
ArmatureData
public ArmatureData()
-
-
Method Details
-
addJoint
public int addJoint(String name, int parent, org.joml.Vector3f pivot, org.joml.Vector3f rotationRadians) -
sortJoints
public int[] sortJoints()Joints so that parents come before children (Bedrock files list bones in any order). -
addCube
public void addCube(int joint, org.joml.Vector3f from, org.joml.Vector3f to, float inflate, org.joml.Vector3f origin, org.joml.Vector3f rotationRadians, Map<net.minecraft.core.Direction, ArmatureData.CubeFace> faces) Makes the six faces of a cube (or fewer: faces given no texture are left out). -
jointIndex
-