java.lang.Object
foundry.veil.api.client.necromancer.Bone

public class Bone extends Object
  • Field Details

    • position

      public org.joml.Vector3f position
    • previousPosition

      public org.joml.Vector3f previousPosition
    • basePosition

      public org.joml.Vector3f basePosition
    • rotation

      public org.joml.Quaternionf rotation
    • previousRotation

      public org.joml.Quaternionf previousRotation
    • baseRotation

      public org.joml.Quaternionf baseRotation
    • size

      public org.joml.Vector3f size
    • previousSize

      public org.joml.Vector3f previousSize
    • baseSize

      public org.joml.Vector3f baseSize
    • color

      public org.joml.Vector4f color
    • previousColor

      public org.joml.Vector4f previousColor
    • baseColor

      public org.joml.Vector4f baseColor
    • parent

      @Nullable public @Nullable Bone parent
    • children

      public List<Bone> children
    • identifier

      public final String identifier
    • parentChain

      public List<Bone> parentChain
  • Constructor Details

    • Bone

      public Bone(String identifier)
  • Method Details

    • setBaseAttributes

      public void setBaseAttributes(org.joml.Vector3fc pos, org.joml.Quaternionfc rotation, org.joml.Vector3fc scale, org.joml.Vector4fc color)
    • reset

      public void reset()
    • updatePreviousAttributes

      protected void updatePreviousAttributes()
    • getModelTransform

      public org.joml.Matrix4x3f getModelTransform(org.joml.Matrix4x3f matrix, org.joml.Quaternionf orientation, float partialTicks)
    • getModelTransform

      public org.joml.Matrix4x3f getModelTransform(org.joml.Matrix4x3f matrix, float partialTicks)
    • getLocalTransform

      public void getLocalTransform(org.joml.Matrix4x3f matrix, org.joml.Quaternionf orientation, float partialTicks)
    • getLocalTransform

      public void getLocalTransform(org.joml.Matrix4x3f matrix, float partialTicks)
    • getColor

      public void getColor(org.joml.Vector4f color, float partialTicks)
    • tick

      protected void tick(float deltaTime)
    • addChild

      public void addChild(Bone child)
    • setParent

      public void setParent(Bone parent)
    • rotate

      public void rotate(float angle, net.minecraft.core.Direction.Axis axis)
    • rotateDeg

      public void rotateDeg(float angle, net.minecraft.core.Direction.Axis axis)