Package net.minecraftforge.client
Interface IArmPoseTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An ArmPose that can be defined by the user.
Register one by creating a custom
HumanoidModel.ArmPose
and returning it in IClientItemExtensions.getArmPose(LivingEntity, InteractionHand, ItemStack).-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransform(HumanoidModel<?> model, LivingEntity entity, HumanoidArm arm) This method should be used to apply all wanted transformations to the player when the ArmPose is active.
-
Method Details
-
applyTransform
This method should be used to apply all wanted transformations to the player when the ArmPose is active. You can useLivingEntity.getTicksUsingItem()andLivingEntity.getUseItemRemainingTicks()for moving animations.- Parameters:
model- The humanoid modelentity- The humanoid entityarm- Arm to pose
-