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.

@FunctionalInterface public interface IArmPoseTransformer
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 Type
    Method
    Description
    void
    applyTransform(net.minecraft.client.model.HumanoidModel<?> model, net.minecraft.client.renderer.entity.state.HumanoidRenderState entity, net.minecraft.world.entity.HumanoidArm arm)
    This method should be used to apply all wanted transformations to the player when the ArmPose is active.
  • Method Details

    • applyTransform

      void applyTransform(net.minecraft.client.model.HumanoidModel<?> model, net.minecraft.client.renderer.entity.state.HumanoidRenderState entity, net.minecraft.world.entity.HumanoidArm arm)
      This method should be used to apply all wanted transformations to the player when the ArmPose is active. You can use LivingEntity.getTicksUsingItem() and LivingEntity.getUseItemRemainingTicks() for moving animations.
      Parameters:
      model - The humanoid model
      entity - The humanoid entity
      arm - Arm to pose