接口 IArmPoseTransformer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
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)
.-
方法概要
修饰符和类型方法说明void
applyTransform
(HumanoidModel<? extends HumanoidRenderState> model, HumanoidRenderState state, HumanoidArm arm) This method should be used to apply all wanted transformations to the player when the ArmPose is active.
-
方法详细资料
-
applyTransform
void applyTransform(HumanoidModel<? extends HumanoidRenderState> model, HumanoidRenderState state, HumanoidArm arm) 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.- 参数:
model
- The humanoid modelstate
- The humanoid statearm
- Arm to pose
-