@Override public void setRightArmPose(Vector3D pose) { as.setRightArmPose(new EulerAngle(pose.X(), pose.Y(), pose.Z())); }
Vector direction = rightArmTransform.get(launchLocation, t); double pitchOffset = adjustArmPitch ? Math.toRadians(currentLocation.getPitch()) : 0; armorStand.setRightArmPose(new EulerAngle(direction.getX(), direction.getY() + pitchOffset, direction.getZ())); } else if (adjustArmPitch) { EulerAngle armPose = armorStand.getRightArmPose(); armPose = armPose.setY(Math.toRadians(-currentLocation.getPitch())); armorStand.setRightArmPose(armPose);
@Override public void apply(Entity entity) { if (!(entity instanceof ArmorStand)) return; ArmorStand armorStand = (ArmorStand)entity; armorStand.setItemInHand(itemInHand); armorStand.setBoots(boots); armorStand.setLeggings(leggings); armorStand.setChestplate(chestplate); armorStand.setHelmet(helmet); if (bodyPose != null) armorStand.setBodyPose(bodyPose); if (leftArmPose != null) armorStand.setLeftArmPose(leftArmPose); if (rightArmPose != null) armorStand.setRightArmPose(rightArmPose); if (leftLegPose != null) armorStand.setLeftLegPose(leftLegPose); if (rightLegPose != null) armorStand.setRightLegPose(rightLegPose); if (headPose != null) armorStand.setHeadPose(headPose); armorStand.setGravity(hasGravity); armorStand.setVisible(isVisible); armorStand.setArms(hasArms); armorStand.setSmall(isSmall); armorStand.setBasePlate(hasBasePlate); armorStand.setMarker(isMarker); CompatibilityUtils.setDisabledSlots(armorStand, disabledSlots); }
armorStand.setRightArmPose(new EulerAngle(armorStandArm.getX(), armorStandArm.getY(), armorStandArm.getZ()));
asR.setGravity(false); asR.setVisible(false); asR.setRightArmPose(new EulerAngle(90 * Math.PI / 180, 300 * Math.PI / 180, 0)); asR.getEquipment().setItemInMainHand(new ItemStack(Material.SHIELD));
armPose = armPose.setY(pitchAmount * location.getPitch() / 180 * Math.PI); armPose = armPose.setZ(rollAmount); activeArmorStand.setRightArmPose(armPose);