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

public class Bone extends Object
  • Field Details

    • x

      public float x
    • y

      public float y
    • z

      public float z
    • pX

      public float pX
    • pY

      public float pY
    • pZ

      public float pZ
    • rotation

      public org.joml.Quaternionf rotation
    • pRotation

      public org.joml.Quaternionf pRotation
    • currentRotation

      protected org.joml.Quaternionf currentRotation
    • xSize

      public float xSize
    • ySize

      public float ySize
    • zSize

      public float zSize
    • pXSize

      public float pXSize
    • pYSize

      public float pYSize
    • pZSize

      public float pZSize
    • initialX

      public float initialX
    • initialY

      public float initialY
    • initialZ

      public float initialZ
    • initialRotation

      public org.joml.Quaternionf initialRotation
    • initialXSize

      public float initialXSize
    • initialYSize

      public float initialYSize
    • initialZSize

      public float initialZSize
    • parent

      @Nullable public @Nullable Bone parent
    • children

      public List<Bone> children
    • identifier

      public final String identifier
    • shouldRender

      public boolean shouldRender
    • parentChain

      public List<Bone> parentChain
  • Constructor Details

    • Bone

      public Bone(String identifier)
  • Method Details

    • setInitialTransform

      public void setInitialTransform(float x, float y, float z, org.joml.Quaternionf rotation)
    • reset

      public void reset()
    • updatePreviousPosition

      protected void updatePreviousPosition()
    • setGlobalSpaceRotation

      public void setGlobalSpaceRotation(org.joml.Quaternionf globalSpaceRotation)
    • setModelSpaceTransform

      public void setModelSpaceTransform(org.joml.Vector3f position, org.joml.Quaternionf rotation)
    • tick

      protected void tick(float deltaTime)
    • transform

      public void transform(com.mojang.blaze3d.vertex.PoseStack pPoseStack, float partialTick)
    • transform

      public void transform(org.joml.Matrix4f matrix4f, float partialTick)
    • render

      public void render(Skin skin, float partialTick, com.mojang.blaze3d.vertex.PoseStack pPoseStack, com.mojang.blaze3d.vertex.VertexConsumer pVertexConsumer, int pPackedLight, int pPackedOverlay, float pRed, float pGreen, float pBlue, float pAlpha, boolean drawChildren)
    • addChild

      public void addChild(Bone children)
    • setParent

      public void setParent(Bone parent)
    • getModelSpaceTransformMatrix

      public org.joml.Matrix4f getModelSpaceTransformMatrix(com.mojang.blaze3d.vertex.PoseStack pPoseStack, float partialTick)
    • rotate

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

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