Class PoseData

java.lang.Object
foundry.veil.api.client.pose.PoseData

public class PoseData extends Object
A class for storing data about the player model that can be used by poses.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
     
    float
     
    net.minecraft.world.InteractionHand
     
    float
     
    float
     
    float
     
    float
     
    net.minecraft.client.model.geom.ModelPart
     
    float
     
    net.minecraft.client.model.geom.ModelPart
     
    float
     
    net.minecraft.world.item.ItemStack
     
    com.mojang.blaze3d.vertex.PoseStack
     
    boolean
     
    float
     
    float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PoseData(float ageInTicks, float walkTime, float limbSwing, float limbSwingAmount, float headYaw, float headPitch, float useTime, float maxUseTime, net.minecraft.client.model.geom.ModelPart mainHand, net.minecraft.client.model.geom.ModelPart offHand, boolean swapped)
    PoseData constructor for a 3rd person pose.
    PoseData(com.mojang.blaze3d.vertex.PoseStack stackPoseStack, net.minecraft.world.item.ItemStack stack, float limbSwingAmount, float useTime, float maxUseTime, net.minecraft.world.InteractionHand hand, float equipProgress)
    PoseData constructor for a 1st person pose.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • ageInTicks

      public float ageInTicks
    • walkTime

      public float walkTime
    • limbSwing

      public float limbSwing
    • limbSwingAmount

      public float limbSwingAmount
    • headYaw

      public float headYaw
    • headPitch

      public float headPitch
    • useTime

      public float useTime
    • maxUseTime

      public float maxUseTime
    • mainHand

      public net.minecraft.client.model.geom.ModelPart mainHand
    • offHand

      public net.minecraft.client.model.geom.ModelPart offHand
    • swapped

      public boolean swapped
    • stackPoseStack

      public com.mojang.blaze3d.vertex.PoseStack stackPoseStack
    • stack

      public net.minecraft.world.item.ItemStack stack
    • hand

      public net.minecraft.world.InteractionHand hand
    • partialTick

      public float partialTick
    • equipProgress

      public float equipProgress
  • Constructor Details

    • PoseData

      public PoseData(float ageInTicks, float walkTime, float limbSwing, float limbSwingAmount, float headYaw, float headPitch, float useTime, float maxUseTime, net.minecraft.client.model.geom.ModelPart mainHand, net.minecraft.client.model.geom.ModelPart offHand, boolean swapped)
      PoseData constructor for a 3rd person pose.
      Parameters:
      ageInTicks - the age of the player in ticks
      walkTime - the time the player has been walking for
      limbSwing - the limb swing of the player
      limbSwingAmount - the limb swing amount of the player
      headYaw - the head yaw of the player
      headPitch - the head pitch of the player
      useTime - the time the player has been using an item for
      maxUseTime - the max time the player can use an item for
      mainHand - the main hand model part
      offHand - the off hand model part
      swapped - whether the player is using their off hand or not
    • PoseData

      public PoseData(com.mojang.blaze3d.vertex.PoseStack stackPoseStack, net.minecraft.world.item.ItemStack stack, float limbSwingAmount, float useTime, float maxUseTime, net.minecraft.world.InteractionHand hand, float equipProgress)
      PoseData constructor for a 1st person pose.
      Parameters:
      stackPoseStack - the pose stack of the player model
      stack - the item stack of the item being rendered
      limbSwingAmount - the limb swing amount of the player
      useTime - the time the player has been using an item for
      maxUseTime - the max time the player can use an item for