Class Bone
java.lang.Object
foundry.veil.api.client.necromancer.Bone
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.joml.Matrix4f
getModelSpaceTransformMatrix
(com.mojang.blaze3d.vertex.PoseStack pPoseStack, float partialTick) 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) void
reset()
void
rotate
(float angle, net.minecraft.core.Direction.Axis axis) void
rotateDeg
(float angle, net.minecraft.core.Direction.Axis axis) void
setGlobalSpaceRotation
(org.joml.Quaternionf globalSpaceRotation) void
setInitialTransform
(float x, float y, float z, org.joml.Quaternionf rotation) void
setModelSpaceTransform
(org.joml.Vector3f position, org.joml.Quaternionf rotation) void
protected void
tick
(float deltaTime) void
transform
(com.mojang.blaze3d.vertex.PoseStack pPoseStack, float partialTick) void
transform
(org.joml.Matrix4f matrix4f, float partialTick) protected void
-
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
-
children
-
identifier
-
shouldRender
public boolean shouldRender -
parentChain
-
-
Constructor Details
-
Bone
-
-
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
-
setParent
-
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)
-