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 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
  • 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