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
Fields -
Constructor Summary
Constructors -
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
-
Field Details
-
data
-
-
Constructor Details
-
ExtendedPose
public ExtendedPose()
-
-
Method Details
-
pose
public void pose(net.minecraft.client.model.HumanoidModel<?> model) Description copied from interface:VeilPoseableApply the pose to the model- Specified by:
posein interfaceVeilPoseable- Parameters:
model- the model to apply the pose to
-
overrideItemTransform
public boolean overrideItemTransform()Description copied from interface:VeilPoseableWhether to override the item transform- Specified by:
overrideItemTransformin interfaceVeilPoseable- Returns:
- true if the item transform should be overridden
-
forceRenderOffhand
public boolean forceRenderOffhand()Description copied from interface:VeilPoseableWhether to force render the offhand in first person- Specified by:
forceRenderOffhandin interfaceVeilPoseable- Returns:
- true if the offhand should be rendered
-
forceRenderMainHand
public boolean forceRenderMainHand()Description copied from interface:VeilPoseableWhether to force render the main hand in first person- Specified by:
forceRenderMainHandin interfaceVeilPoseable- Returns:
- true if the main hand should be rendered
-
poseItemUsing
public void poseItemUsing(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Description copied from interface:VeilPoseableApply the pose to the item renderer when the player is using an item- Specified by:
poseItemUsingin interfaceVeilPoseable- Parameters:
itemRenderer- the item renderer
-
poseMainHandFirstPerson
public void poseMainHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Description copied from interface:VeilPoseableApply the pose to the main hand when the player is in first person- Specified by:
poseMainHandFirstPersonin interfaceVeilPoseable- Parameters:
stack- the pose stack
-
poseOffHandFirstPerson
public void poseOffHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack) Description copied from interface:VeilPoseableApply the pose to the off hand when the player is in first person- Specified by:
poseOffHandFirstPersonin interfaceVeilPoseable- Parameters:
stack- the pose stack
-
poseItem
public void poseItem(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer) Description copied from interface:VeilPoseableApply the pose to the item renderer- Specified by:
poseItemin interfaceVeilPoseable- Parameters:
itemRenderer- the item renderer
-
poseMainHand
public void poseMainHand(net.minecraft.client.model.geom.ModelPart mainHand) Description copied from interface:VeilPoseableApply the pose to the main hand- Specified by:
poseMainHandin interfaceVeilPoseable- Parameters:
mainHand- the main hand
-
poseOffHand
public void poseOffHand(net.minecraft.client.model.geom.ModelPart offHand) Description copied from interface:VeilPoseableApply the pose to the off hand- Specified by:
poseOffHandin interfaceVeilPoseable- Parameters:
offHand- the off hand
-
poseLeftArm
public void poseLeftArm(net.minecraft.client.model.geom.ModelPart leftArm) Description copied from interface:VeilPoseableApply the pose to the left arm- Specified by:
poseLeftArmin interfaceVeilPoseable- Parameters:
leftArm- the left arm
-
poseRightArm
public void poseRightArm(net.minecraft.client.model.geom.ModelPart rightArm) Description copied from interface:VeilPoseableApply the pose to the right arm- Specified by:
poseRightArmin interfaceVeilPoseable- Parameters:
rightArm- the right arm
-
poseLeftLeg
public void poseLeftLeg(net.minecraft.client.model.geom.ModelPart leftLeg) Description copied from interface:VeilPoseableApply the pose to the left leg- Specified by:
poseLeftLegin interfaceVeilPoseable- Parameters:
leftLeg- the left leg
-
poseRightLeg
public void poseRightLeg(net.minecraft.client.model.geom.ModelPart rightLeg) Description copied from interface:VeilPoseableApply the pose to the right leg- Specified by:
poseRightLegin interfaceVeilPoseable- Parameters:
rightLeg- the right leg
-
poseHead
public void poseHead(net.minecraft.client.model.geom.ModelPart head) Description copied from interface:VeilPoseableApply the pose to the head- Specified by:
poseHeadin interfaceVeilPoseable- Parameters:
head- the head
-
poseBody
public void poseBody(net.minecraft.client.model.geom.ModelPart body) Description copied from interface:VeilPoseableApply the pose to the body- Specified by:
poseBodyin interfaceVeilPoseable- Parameters:
body- the body
-