Interface ArmorStand

All Superinterfaces:
Attributable, Audience, CommandSender, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Metadatable, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface ArmorStand extends LivingEntity
  • Method Details

    • getItemInHand

      Deprecated.
      prefer getItem(EquipmentSlot) // Paper
      Returns the item the armor stand is currently holding.
      Returns:
      the held item
      See Also:
      getEquipment()
    • setItemInHand

      @Deprecated void setItemInHand(@Nullable @Nullable ItemStack item)
      Deprecated.
      Sets the item the armor stand is currently holding.
      Parameters:
      item - the item to hold
      See Also:
      getEquipment()
    • getBoots

      Deprecated.
      Returns the item currently being worn by the armor stand on its feet.
      Returns:
      the worn item
      See Also:
      getEquipment()
    • setBoots

      @Deprecated void setBoots(@Nullable @Nullable ItemStack item)
      Sets the item currently being worn by the armor stand on its feet.
      Parameters:
      item - the item to wear
      See Also:
      getEquipment()
    • getLeggings

      Deprecated.
      Returns the item currently being worn by the armor stand on its legs.
      Returns:
      the worn item
      See Also:
      getEquipment()
    • setLeggings

      @Deprecated void setLeggings(@Nullable @Nullable ItemStack item)
      Sets the item currently being worn by the armor stand on its legs.
      Parameters:
      item - the item to wear
      See Also:
      getEquipment()
    • getChestplate

      Returns the item currently being worn by the armor stand on its chest.
      Returns:
      the worn item
      See Also:
      getEquipment()
    • setChestplate

      @Deprecated void setChestplate(@Nullable @Nullable ItemStack item)
      Sets the item currently being worn by the armor stand on its chest.
      Parameters:
      item - the item to wear
      See Also:
      getEquipment()
    • getHelmet

      Deprecated.
      Returns the item currently being worn by the armor stand on its head.
      Returns:
      the worn item
      See Also:
      getEquipment()
    • setHelmet

      @Deprecated void setHelmet(@Nullable @Nullable ItemStack item)
      Sets the item currently being worn by the armor stand on its head.
      Parameters:
      item - the item to wear
      See Also:
      getEquipment()
    • getBodyPose

      Returns the armor stand's body's current pose as a EulerAngle.
      Returns:
      the current pose
    • setBodyPose

      void setBodyPose(@NotNull @NotNull EulerAngle pose)
      Sets the armor stand's body's current pose as a EulerAngle.
      Parameters:
      pose - the current pose
    • getLeftArmPose

      @NotNull @NotNull EulerAngle getLeftArmPose()
      Returns the armor stand's left arm's current pose as a EulerAngle.
      Returns:
      the current pose
    • setLeftArmPose

      void setLeftArmPose(@NotNull @NotNull EulerAngle pose)
      Sets the armor stand's left arm's current pose as a EulerAngle.
      Parameters:
      pose - the current pose
    • getRightArmPose

      @NotNull @NotNull EulerAngle getRightArmPose()
      Returns the armor stand's right arm's current pose as a EulerAngle.
      Returns:
      the current pose
    • setRightArmPose

      void setRightArmPose(@NotNull @NotNull EulerAngle pose)
      Sets the armor stand's right arm's current pose as a EulerAngle.
      Parameters:
      pose - the current pose
    • getLeftLegPose

      @NotNull @NotNull EulerAngle getLeftLegPose()
      Returns the armor stand's left leg's current pose as a EulerAngle.
      Returns:
      the current pose
    • setLeftLegPose

      void setLeftLegPose(@NotNull @NotNull EulerAngle pose)
      Sets the armor stand's left leg's current pose as a EulerAngle.
      Parameters:
      pose - the current pose
    • getRightLegPose

      @NotNull @NotNull EulerAngle getRightLegPose()
      Returns the armor stand's right leg's current pose as a EulerAngle.
      Returns:
      the current pose
    • setRightLegPose

      void setRightLegPose(@NotNull @NotNull EulerAngle pose)
      Sets the armor stand's right leg's current pose as a EulerAngle.
      Parameters:
      pose - the current pose
    • getHeadPose

      Returns the armor stand's head's current pose as a EulerAngle.
      Returns:
      the current pose
    • setHeadPose

      void setHeadPose(@NotNull @NotNull EulerAngle pose)
      Sets the armor stand's head's current pose as a EulerAngle.
      Parameters:
      pose - the current pose
    • hasBasePlate

      boolean hasBasePlate()
      Returns whether the armor stand has a base plate.
      Returns:
      whether it has a base plate
    • setBasePlate

      void setBasePlate(boolean basePlate)
      Sets whether the armor stand has a base plate.
      Parameters:
      basePlate - whether is has a base plate
    • isVisible

      boolean isVisible()
      Returns whether the armor stand should be visible or not.
      Returns:
      whether the stand is visible or not
    • setVisible

      void setVisible(boolean visible)
      Sets whether the armor stand should be visible or not.
      Parameters:
      visible - whether the stand is visible or not
    • hasArms

      boolean hasArms()
      Returns whether this armor stand has arms.
      Returns:
      whether this has arms or not
    • setArms

      void setArms(boolean arms)
      Sets whether this armor stand has arms.
      Parameters:
      arms - whether this has arms or not
    • isSmall

      boolean isSmall()
      Returns whether this armor stand is scaled down.
      Returns:
      whether this is scaled down
    • setSmall

      void setSmall(boolean small)
      Sets whether this armor stand is scaled down.
      Parameters:
      small - whether this is scaled down
    • isMarker

      boolean isMarker()
      Returns whether this armor stand is a marker, meaning it has a very small collision box.
      Returns:
      whether this is a marker
    • setMarker

      void setMarker(boolean marker)
      Sets whether this armor stand is a marker, meaning it has a very small collision box.
      Parameters:
      marker - whether this is a marker
    • addEquipmentLock

      void addEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType)
      Locks the equipment slot with the specified locking mechanism.
      Parameters:
      slot - the equipment slot to lock
      lockType - the LockType to lock the equipment slot with
    • removeEquipmentLock

      void removeEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType)
      Parameters:
      slot - the equipment slot to change
      lockType - the LockType to remove
    • hasEquipmentLock

      boolean hasEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType)
      Returns if the ArmorStand has the specified locking mechanism.
      Parameters:
      slot - the EquipmentSlot to test
      lockType - the LockType to test
      Returns:
      if the ArmorStand has been locked with the parameters specified
    • canMove

      boolean canMove()
      Tests if this armor stand can move.

      The default value is true.

      Returns:
      true if this armour stand can move, false otherwise
    • setCanMove

      void setCanMove(boolean move)
      Sets if this armor stand can move.
      Parameters:
      move - true if this armour stand can move, false otherwise
    • getEquipment

      @NotNull EntityEquipment getEquipment()
      Description copied from interface: LivingEntity
      Gets the inventory with the equipment worn by the living entity.
      Specified by:
      getEquipment in interface LivingEntity
      Returns:
      the living entity's inventory
    • canTick

      boolean canTick()
      Tests if this armor stand can tick.

      The default value is defined in paper.yml.

      Returns:
      true if this armour stand can tick, false otherwise
    • setCanTick

      void setCanTick(boolean tick)
      Sets if this armor stand can tick.
      Parameters:
      tick - true if this armour stand can tick, false otherwise
    • getItem

      Returns the item the armor stand has equip in the given equipment slot
      Parameters:
      slot - the equipment slot to get
      Returns:
      the ItemStack in the equipment slot
    • setItem

      void setItem(@NotNull EquipmentSlot slot, @Nullable @Nullable ItemStack item)
      Sets the item the armor stand has equip in the given equipment slot
      Parameters:
      slot - the equipment slot to set
      item - the item to hold
    • getDisabledSlots

      @NotNull Set<EquipmentSlot> getDisabledSlots()
      Get the list of disabled slots
      Returns:
      list of disabled slots
    • setDisabledSlots

      void setDisabledSlots(@NotNull @NotNull EquipmentSlot... slots)
      Set the disabled slots This makes it so a player is unable to interact with the Armor Stand to place, remove, or replace an item in the given slot(s) Note: Once a slot is disabled, the only way to get an item back it to break the armor stand.
      Parameters:
      slots - var-arg array of slots to lock
    • addDisabledSlots

      void addDisabledSlots(@NotNull @NotNull EquipmentSlot... slots)
      Disable specific slots, adding them to the currently disabled slots This makes it so a player is unable to interact with the Armor Stand to place, remove, or replace an item in the given slot(s) Note: Once a slot is disabled, the only way to get an item back it to break the armor stand.
      Parameters:
      slots - var-arg array of slots to lock
    • removeDisabledSlots

      void removeDisabledSlots(@NotNull @NotNull EquipmentSlot... slots)
      Remove the given slots from the disabled slots list, enabling them. This makes it so a player is able to interact with the Armor Stand to place, remove, or replace an item in the given slot(s)
      Parameters:
      slots - var-arg array of slots to unlock
    • isSlotDisabled

      boolean isSlotDisabled(@NotNull EquipmentSlot slot)
      Check if a specific slot is disabled
      Parameters:
      slot - The slot to check
      Returns:
      true if the slot is disabled, else false.