@Override public void setMarker(boolean marker) { as.setMarker(marker); }
as.setMarker(true); as.setArms(false); as.setBasePlate(false);
as.setMarker(true); as.setArms(false); as.setBasePlate(false);
as.setMarker(true); as.setArms(false); as.setBasePlate(false);
as.setMarker(true); as.setArms(false); as.setBasePlate(false);
@SuppressWarnings("deprecation") @Override public void run() { if (arrow.isDead() || !arrow.isValid()) { cancel(); return; } if (arrow.isInBlock() || arrow.isOnGround()) { translocatorPlayerMap.invalidate(arrow.getUniqueId()); playerTranslocatorMap.invalidate(player.getUniqueId()); Location location = arrow.getLocation(); arrow.remove(); ArmorStand armorStand = location.getWorld().spawn(location, ArmorStand.class); armorStand.setCanPickupItems(false); armorStand.setSmall(true); armorStand.setMarker(false); armorStand.setPersistent(false); armorStand.setCustomName(I18n.format("message.translocator", player.getName())); armorStand.setCustomNameVisible(true); playerTranslocatorMap.put(player.getUniqueId(), armorStand.getUniqueId()); translocatorPlayerMap.put(armorStand.getUniqueId(), player.getUniqueId()); cancel(); } } }.runTaskTimer(plugin, 0L, 5L);
armorStand.setMarker(true);
@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); }
armorStand.setMarker(true);