Class ExtendedPose

java.lang.Object
foundry.veil.api.client.pose.ExtendedPose
All Implemented Interfaces:
VeilPoseable

public abstract class ExtendedPose extends Object implements 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
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether to force render the main hand in first person
    boolean
    Whether to force render the offhand in first person
    boolean
    Whether to override the item transform
    void
    pose(net.minecraft.client.model.HumanoidModel<?> model)
    Apply the pose to the model
    void
    poseBody(net.minecraft.client.model.geom.ModelPart body)
    Apply the pose to the body
    void
    poseHead(net.minecraft.client.model.geom.ModelPart head)
    Apply the pose to the head
    void
    poseItem(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer)
    Apply the pose to the item renderer
    void
    poseItemUsing(net.minecraft.client.renderer.ItemInHandRenderer itemRenderer)
    Apply the pose to the item renderer when the player is using an item
    void
    poseLeftArm(net.minecraft.client.model.geom.ModelPart leftArm)
    Apply the pose to the left arm
    void
    poseLeftLeg(net.minecraft.client.model.geom.ModelPart leftLeg)
    Apply the pose to the left leg
    void
    poseMainHand(net.minecraft.client.model.geom.ModelPart mainHand)
    Apply the pose to the main hand
    void
    poseMainHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack)
    Apply the pose to the main hand when the player is in first person
    void
    poseOffHand(net.minecraft.client.model.geom.ModelPart offHand)
    Apply the pose to the off hand
    void
    poseOffHandFirstPerson(com.mojang.blaze3d.vertex.PoseStack stack)
    Apply the pose to the off hand when the player is in first person
    void
    poseRightArm(net.minecraft.client.model.geom.ModelPart rightArm)
    Apply the pose to the right arm
    void
    poseRightLeg(net.minecraft.client.model.geom.ModelPart rightLeg)
    Apply the pose to the right leg

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      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 interface VeilPoseable
      Parameters:
      body - the body