Class ArmatureData

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.ArmatureData

public final class ArmatureData extends Object
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.
  • Field Details

  • 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

      public Map<String,Integer> jointIndex()
      Joints by name, for animation files and definitions that name them.