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 TypeMethodDescriptionbooleanWhether to force render the main hand in first personbooleanWhether to force render the offhand in first personbooleanWhether to override the item transformvoidpose(net.minecraft.client.model.HumanoidModel<?> model) Apply the pose to the modelvoidposeBody(net.minecraft.client.model.geom.ModelPart body) Apply the pose to the bodyvoidposeHead(net.minecraft.client.model.geom.ModelPart head) Apply the pose to the headvoidposeItem(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Apply the pose to the item renderervoidposeItemUsing(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Apply the pose to the item renderer when the player is using an itemvoidposeLeftArm(net.minecraft.client.model.geom.ModelPart leftArm) Apply the pose to the left armvoidposeLeftLeg(net.minecraft.client.model.geom.ModelPart leftLeg) Apply the pose to the left legvoidposeMainHand(net.minecraft.client.model.geom.ModelPart mainHand) Apply the pose to the main handvoidposeMainHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Apply the pose to the main hand when the player is in first personvoidposeOffHand(net.minecraft.client.model.geom.ModelPart offHand) Apply the pose to the off handvoidposeOffHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Apply the pose to the off hand when the player is in first personvoidposeRightArm(net.minecraft.client.model.geom.ModelPart rightArm) Apply the pose to the right armvoidposeRightLeg(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
-