@Override public Vector3D getRightArmPose() { EulerAngle pose = as.getRightArmPose(); return new Vector3D(pose.getX(), pose.getY(), pose.getZ()); }
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);
public EntityArmorStandData(ArmorStand armorStand) { itemInHand = armorStand.getItemInHand(); if (itemInHand != null) itemInHand = itemInHand.clone(); boots = armorStand.getBoots(); if (boots != null) boots = boots.clone(); leggings = armorStand.getLeggings(); if (leggings != null) leggings = leggings.clone(); chestplate = armorStand.getChestplate(); if (chestplate != null) chestplate = chestplate.clone(); helmet = armorStand.getHelmet(); if (helmet != null) helmet = helmet.clone(); bodyPose = armorStand.getBodyPose(); leftArmPose = armorStand.getLeftArmPose(); rightArmPose = armorStand.getRightArmPose(); leftLegPose = armorStand.getLeftLegPose(); rightLegPose = armorStand.getRightLegPose(); headPose = armorStand.getHeadPose(); hasGravity = armorStand.hasGravity(); isVisible = armorStand.isVisible(); hasArms = armorStand.hasArms(); isSmall = armorStand.isSmall(); hasBasePlate = armorStand.hasBasePlate(); isMarker = armorStand.isMarker(); disabledSlots = CompatibilityUtils.getDisabledSlots(armorStand); }
activeArmorStand.setHeadPose(new EulerAngle(pitchAmount * location.getPitch() / 180 * Math.PI, 0, 0)); } else if (!useHelmet) { EulerAngle armPose = activeArmorStand.getRightArmPose(); armPose = armPose.setY(pitchAmount * location.getPitch() / 180 * Math.PI); armPose = armPose.setZ(rollAmount);