Package foundry.veil.api.client.pose
Class ExtendedPose
java.lang.Object
foundry.veil.api.client.pose.ExtendedPose
- All Implemented Interfaces:
VeilPoseable
An abstract class 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:
-
Field Summary
-
Constructor Summary
-
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
-
Field Details
-
data
-
-
Constructor Details
-
ExtendedPose
public ExtendedPose()
-
-
Method Details
-
pose
public void pose(net.minecraft.client.model.HumanoidModel<?> model) Description copied from interface:VeilPoseable
Apply the pose to the model- Specified by:
pose
in interfaceVeilPoseable
- Parameters:
model
- the model to apply the pose to
-
overrideItemTransform
public boolean overrideItemTransform()Description copied from interface:VeilPoseable
Whether to override the item transform- Specified by:
overrideItemTransform
in interfaceVeilPoseable
- Returns:
- true if the item transform should be overridden
-
forceRenderOffhand
public boolean forceRenderOffhand()Description copied from interface:VeilPoseable
Whether to force render the offhand in first person- Specified by:
forceRenderOffhand
in interfaceVeilPoseable
- Returns:
- true if the offhand should be rendered
-
forceRenderMainHand
public boolean forceRenderMainHand()Description copied from interface:VeilPoseable
Whether to force render the main hand in first person- Specified by:
forceRenderMainHand
in interfaceVeilPoseable
- Returns:
- true if the main hand should be rendered
-
poseItemUsing
public void poseItemUsing(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Description copied from interface:VeilPoseable
Apply the pose to the item renderer when the player is using an item- Specified by:
poseItemUsing
in interfaceVeilPoseable
- Parameters:
itemRenderer
- the item renderer
-
poseMainHandFirstPerson
public void poseMainHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Description copied from interface:VeilPoseable
Apply the pose to the main hand when the player is in first person- Specified by:
poseMainHandFirstPerson
in interfaceVeilPoseable
- Parameters:
stack
- the pose stack
-
poseOffHandFirstPerson
public void poseOffHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Description copied from interface:VeilPoseable
Apply the pose to the off hand when the player is in first person- Specified by:
poseOffHandFirstPerson
in interfaceVeilPoseable
- Parameters:
stack
- the pose stack
-
poseItem
public void poseItem(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Description copied from interface:VeilPoseable
Apply the pose to the item renderer- Specified by:
poseItem
in interfaceVeilPoseable
- Parameters:
itemRenderer
- the item renderer
-
poseMainHand
public void poseMainHand(net.minecraft.client.model.geom.ModelPart mainHand) Description copied from interface:VeilPoseable
Apply the pose to the main hand- Specified by:
poseMainHand
in interfaceVeilPoseable
- Parameters:
mainHand
- the main hand
-
poseOffHand
public void poseOffHand(net.minecraft.client.model.geom.ModelPart offHand) Description copied from interface:VeilPoseable
Apply the pose to the off hand- Specified by:
poseOffHand
in interfaceVeilPoseable
- Parameters:
offHand
- the off hand
-
poseLeftArm
public void poseLeftArm(net.minecraft.client.model.geom.ModelPart leftArm) Description copied from interface:VeilPoseable
Apply the pose to the left arm- Specified by:
poseLeftArm
in interfaceVeilPoseable
- Parameters:
leftArm
- the left arm
-
poseRightArm
public void poseRightArm(net.minecraft.client.model.geom.ModelPart rightArm) Description copied from interface:VeilPoseable
Apply the pose to the right arm- Specified by:
poseRightArm
in interfaceVeilPoseable
- Parameters:
rightArm
- the right arm
-
poseLeftLeg
public void poseLeftLeg(net.minecraft.client.model.geom.ModelPart leftLeg) Description copied from interface:VeilPoseable
Apply the pose to the left leg- Specified by:
poseLeftLeg
in interfaceVeilPoseable
- Parameters:
leftLeg
- the left leg
-
poseRightLeg
public void poseRightLeg(net.minecraft.client.model.geom.ModelPart rightLeg) Description copied from interface:VeilPoseable
Apply the pose to the right leg- Specified by:
poseRightLeg
in interfaceVeilPoseable
- Parameters:
rightLeg
- the right leg
-
poseHead
public void poseHead(net.minecraft.client.model.geom.ModelPart head) Description copied from interface:VeilPoseable
Apply the pose to the head- Specified by:
poseHead
in interfaceVeilPoseable
- Parameters:
head
- the head
-
poseBody
public void poseBody(net.minecraft.client.model.geom.ModelPart body) Description copied from interface:VeilPoseable
Apply the pose to the body- Specified by:
poseBody
in interfaceVeilPoseable
- Parameters:
body
- the body
-