Package foundry.veil.api.client.pose
Class PoseData
java.lang.Object
foundry.veil.api.client.pose.PoseData
A class for storing data about the player model that can be used by poses.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatnet.minecraft.world.InteractionHandfloatfloatfloatfloatnet.minecraft.client.model.geom.ModelPartfloatnet.minecraft.client.model.geom.ModelPartfloatnet.minecraft.world.item.ItemStackcom.mojang.blaze3d.vertex.PoseStackbooleanfloatfloat -
Constructor Summary
ConstructorsConstructorDescriptionPoseData(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
-
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 tickswalkTime- the time the player has been walking forlimbSwing- the limb swing of the playerlimbSwingAmount- the limb swing amount of the playerheadYaw- the head yaw of the playerheadPitch- the head pitch of the playeruseTime- the time the player has been using an item formaxUseTime- the max time the player can use an item formainHand- the main hand model partoffHand- the off hand model partswapped- 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 modelstack- the item stack of the item being renderedlimbSwingAmount- the limb swing amount of the playeruseTime- the time the player has been using an item formaxUseTime- the max time the player can use an item for
-