Class PipelinePoseStackMixin
java.lang.Object
foundry.veil.mixin.pipeline.client.PipelinePoseStackMixin
- All Implemented Interfaces:
MatrixStack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyScale(float x, float y, float z) Scales the position and normal by the specified amount in the x, y, and z.voidclear()Clears all transformations.booleanisEmpty()booleanabstract com.mojang.blaze3d.vertex.PoseStack.Poselast()voidRestores a previous position and normal set withMatrixStack.matrixPush().voidSaves the current position and normal transformation for restoring later withMatrixStack.matrixPop().com.mojang.blaze3d.vertex.PoseStack.Posepose()voidrotate(float angle, float x, float y, float z) Rotates the position and normal by the specified angle about the line specified by x, y, z.voidrotate(org.joml.Quaterniondc rotation) Rotates the position and normal by the specified quaternion rotation.voidrotate(org.joml.Quaternionfc rotation) Rotates the position and normal by the specified quaternion rotation.voidrotateAround(org.joml.Quaterniondc rotation, double x, double y, double z) Rotates the position and normal by the specified quaternion rotation about the specified rotation point.voidrotateAround(org.joml.Quaternionfc rotation, float x, float y, float z) Rotates the position and normal by the specified quaternion rotation about the specified rotation point.voidrotateXYZ(float x, float y, float z) Rotates about the x, y, then z planes the specified angles.voidrotateZYX(float z, float y, float x) Rotates about the z, y, then x planes the specified angles.abstract voidshadow$mulPose(org.joml.Quaternionf quaternion) abstract voidabstract voidabstract voidshadow$rotateAround(org.joml.Quaternionf quaternion, float x, float y, float z) abstract voidshadow$scale(float x, float y, float z) com.mojang.blaze3d.vertex.PoseStackvoidtranslate(float x, float y, float z) Translates the position by the specified amount.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface foundry.veil.api.client.render.MatrixStack
applyScale, applyScale, applyScale, copy, copy, copy, normal, position, rotate, rotateXYZ, rotateZYX, setIdentity, translate
-
Constructor Details
-
PipelinePoseStackMixin
public PipelinePoseStackMixin()
-
-
Method Details
-
shadow$scale
public abstract void shadow$scale(float x, float y, float z) -
shadow$mulPose
public abstract void shadow$mulPose(org.joml.Quaternionf quaternion) -
shadow$rotateAround
public abstract void shadow$rotateAround(org.joml.Quaternionf quaternion, float x, float y, float z) -
shadow$pushPose
public abstract void shadow$pushPose() -
shadow$popPose
public abstract void shadow$popPose() -
last
public abstract com.mojang.blaze3d.vertex.PoseStack.Pose last() -
clear
public void clear()Description copied from interface:MatrixStackClears all transformations.- Specified by:
clearin interfaceMatrixStack
-
translate
public void translate(float x, float y, float z) Description copied from interface:MatrixStackTranslates the position by the specified amount.- Specified by:
translatein interfaceMatrixStack- Parameters:
x- The x amounty- The y amountz- The z amount
-
rotate
public void rotate(org.joml.Quaterniondc rotation) Description copied from interface:MatrixStackRotates the position and normal by the specified quaternion rotation.- Specified by:
rotatein interfaceMatrixStack- Parameters:
rotation- The rotation to use
-
rotate
public void rotate(org.joml.Quaternionfc rotation) Description copied from interface:MatrixStackRotates the position and normal by the specified quaternion rotation.- Specified by:
rotatein interfaceMatrixStack- Parameters:
rotation- The rotation to use
-
rotate
public void rotate(float angle, float x, float y, float z) Description copied from interface:MatrixStackRotates the position and normal by the specified angle about the line specified by x, y, z.
For rotating along all 3 axes, use
MatrixStack.rotateXYZ(float, float, float)orMatrixStack.rotateZYX(float, float, float).- Specified by:
rotatein interfaceMatrixStack- Parameters:
angle- The amount to rotate in radiansx- The x normaly- The y normalz- The z normal
-
rotateXYZ
public void rotateXYZ(float x, float y, float z) Description copied from interface:MatrixStackRotates about the x, y, then z planes the specified angles.- Specified by:
rotateXYZin interfaceMatrixStack- Parameters:
x- The amount to rotate in the x in radiansy- The amount to rotate in the y in radiansz- The amount to rotate in the z in radians
-
rotateZYX
public void rotateZYX(float z, float y, float x) Description copied from interface:MatrixStackRotates about the z, y, then x planes the specified angles.- Specified by:
rotateZYXin interfaceMatrixStack- Parameters:
z- The amount to rotate in the x in radiansy- The amount to rotate in the y in radiansx- The amount to rotate in the z in radians
-
rotateAround
public void rotateAround(org.joml.Quaterniondc rotation, double x, double y, double z) Description copied from interface:MatrixStackRotates the position and normal by the specified quaternion rotation about the specified rotation point.- Specified by:
rotateAroundin interfaceMatrixStack- Parameters:
rotation- The rotation to usex- The rotation point Xy- The rotation point Yz- The rotation point Z
-
rotateAround
public void rotateAround(org.joml.Quaternionfc rotation, float x, float y, float z) Description copied from interface:MatrixStackRotates the position and normal by the specified quaternion rotation about the specified rotation point.- Specified by:
rotateAroundin interfaceMatrixStack- Parameters:
rotation- The rotation to usex- The rotation point Xy- The rotation point Yz- The rotation point Z
-
applyScale
public void applyScale(float x, float y, float z) Description copied from interface:MatrixStackScales the position and normal by the specified amount in the x, y, and z.- Specified by:
applyScalein interfaceMatrixStack- Parameters:
x- The x scale factory- The y scale factorz- The z scale factor
-
isIdentity
public boolean isIdentity()- Specified by:
isIdentityin interfaceMatrixStack- Returns:
- Whether the
MatrixStack.position()andMatrixStack.normal()are identity matrices
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMatrixStack- Returns:
- Whether there are no more transformations to pop
-
matrixPush
public void matrixPush()Description copied from interface:MatrixStackSaves the current position and normal transformation for restoring later withMatrixStack.matrixPop().- Specified by:
matrixPushin interfaceMatrixStack
-
matrixPop
public void matrixPop()Description copied from interface:MatrixStackRestores a previous position and normal set withMatrixStack.matrixPush().- Specified by:
matrixPopin interfaceMatrixStack
-
pose
public com.mojang.blaze3d.vertex.PoseStack.Pose pose()- Specified by:
posein interfaceMatrixStack- Returns:
- The last pose in the stack
-
toPoseStack
public com.mojang.blaze3d.vertex.PoseStack toPoseStack()- Specified by:
toPoseStackin interfaceMatrixStack- Returns:
- This matrix stack as a vanilla mc
PoseStack
-