Package foundry.veil.api.client.pose
Interface VeilPoseable
- All Known Implementing Classes:
ExtendedPose
public interface VeilPoseable
An interface for a pose that can be applied to a model. Some data is passed to the pose, and the pose can modify the player model at runtime.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to force render the main hand in first personboolean
Whether to force render the offhand in first personboolean
Whether to override the item transformvoid
pose
(net.minecraft.client.model.HumanoidModel<?> model) Apply the pose to the modelvoid
poseBody
(net.minecraft.client.model.geom.ModelPart body) Apply the pose to the bodyvoid
poseHead
(net.minecraft.client.model.geom.ModelPart head) Apply the pose to the headvoid
poseItem
(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Apply the pose to the item renderervoid
poseItemUsing
(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Apply the pose to the item renderer when the player is using an itemvoid
poseLeftArm
(net.minecraft.client.model.geom.ModelPart leftArm) Apply the pose to the left armvoid
poseLeftLeg
(net.minecraft.client.model.geom.ModelPart leftLeg) Apply the pose to the left legvoid
poseMainHand
(net.minecraft.client.model.geom.ModelPart mainHand) Apply the pose to the main handvoid
poseMainHandFirstPerson
(com.mojang.blaze3d.vertex.PoseStack stack) Apply the pose to the main hand when the player is in first personvoid
poseOffHand
(net.minecraft.client.model.geom.ModelPart offHand) Apply the pose to the off handvoid
poseOffHandFirstPerson
(com.mojang.blaze3d.vertex.PoseStack stack) Apply the pose to the off hand when the player is in first personvoid
poseRightArm
(net.minecraft.client.model.geom.ModelPart rightArm) Apply the pose to the right armvoid
poseRightLeg
(net.minecraft.client.model.geom.ModelPart rightLeg) Apply the pose to the right leg
-
Method Details
-
pose
void pose(net.minecraft.client.model.HumanoidModel<?> model) Apply the pose to the model- Parameters:
model
- the model to apply the pose to
-
poseItem
void poseItem(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Apply the pose to the item renderer- Parameters:
itemRenderer
- the item renderer
-
poseItemUsing
void poseItemUsing(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Apply the pose to the item renderer when the player is using an item- Parameters:
itemRenderer
- the item renderer
-
poseLeftArm
void poseLeftArm(net.minecraft.client.model.geom.ModelPart leftArm) Apply the pose to the left arm- Parameters:
leftArm
- the left arm
-
poseRightArm
void poseRightArm(net.minecraft.client.model.geom.ModelPart rightArm) Apply the pose to the right arm- Parameters:
rightArm
- the right arm
-
poseLeftLeg
void poseLeftLeg(net.minecraft.client.model.geom.ModelPart leftLeg) Apply the pose to the left leg- Parameters:
leftLeg
- the left leg
-
poseRightLeg
void poseRightLeg(net.minecraft.client.model.geom.ModelPart rightLeg) Apply the pose to the right leg- Parameters:
rightLeg
- the right leg
-
poseHead
void poseHead(net.minecraft.client.model.geom.ModelPart head) Apply the pose to the head- Parameters:
head
- the head
-
poseBody
void poseBody(net.minecraft.client.model.geom.ModelPart body) Apply the pose to the body- Parameters:
body
- the body
-
poseMainHand
void poseMainHand(net.minecraft.client.model.geom.ModelPart mainHand) Apply the pose to the main hand- Parameters:
mainHand
- the main hand
-
poseMainHandFirstPerson
void poseMainHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Apply the pose to the main hand when the player is in first person- Parameters:
stack
- the pose stack
-
poseOffHand
void poseOffHand(net.minecraft.client.model.geom.ModelPart offHand) Apply the pose to the off hand- Parameters:
offHand
- the off hand
-
poseOffHandFirstPerson
void poseOffHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Apply the pose to the off hand when the player is in first person- Parameters:
stack
- the pose stack
-
forceRenderOffhand
boolean forceRenderOffhand()Whether to force render the offhand in first person- Returns:
- true if the offhand should be rendered
-
forceRenderMainHand
boolean forceRenderMainHand()Whether to force render the main hand in first person- Returns:
- true if the main hand should be rendered
-
overrideItemTransform
boolean overrideItemTransform()Whether to override the item transform- Returns:
- true if the item transform should be overridden
-