@Override public void setHasArms(boolean arms) { as.setArms(arms); }
as.setArms(false); as.setBasePlate(false); as.setGravity(false);
as.setArms(false); as.setBasePlate(false); as.setGravity(false);
as.setSmall(true); as.setMarker(true); as.setArms(false); as.setBasePlate(false); as.setGravity(false);
as.setSmall(true); as.setMarker(true); as.setArms(false); as.setBasePlate(false); as.setGravity(false);
@Override public SpellResult start(CastContext context) { MageController controller = context.getController(); Location location = adjustLocation(sourceLocation.getLocation(context)); ArmorStand armorStand = (ArmorStand)setEntity(controller, CompatibilityUtils.createArmorStand(location)); armorStand.setMarker(armorStandMarker); armorStand.setVisible(!armorStandInvisible); armorStand.setBasePlate(showArmorStandBaseplate); armorStand.setGravity(armorStandGravity); armorStand.setSmall(smallArmorStand); armorStand.setArms(showArmorStandArms); CompatibilityUtils.setSilent(armorStand, true); CompatibilityUtils.setDisabledSlots(armorStand, 2039552); update(armorStand); CompatibilityUtils.addToWorld(location.getWorld(), armorStand, spawnReason); return super.start(context); }
@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); }