Attributable, CommandSender, Damageable, Entity, LivingEntity, Metadatable, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperatorpublic interface ArmorStand extends LivingEntity
| Modifier and Type | Interface | Description | 
|---|---|---|
| static class  | ArmorStand.LockType | Represents types of locking mechanisms for ArmorStand equipment. | 
Entity.Spigot| Modifier and Type | Method | Description | 
|---|---|---|
| void | addDisabledSlots(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. | 
| void | addEquipmentLock(EquipmentSlot slot,
                ArmorStand.LockType lockType) | Locks the equipment slot with the specified
  locking mechanism. | 
| boolean | canMove() | Tests if this armor stand can move. | 
| boolean | canTick() | Tests if this armor stand can tick. | 
| EulerAngle | getBodyPose() | Returns the armor stand's body's current pose as a
  EulerAngle. | 
| ItemStack | getBoots() | Deprecated.
 prefer  EntityEquipment.getBoots() | 
| ItemStack | getChestplate() | Deprecated.
 | 
| Set<EquipmentSlot> | getDisabledSlots() | Get the list of disabled slots | 
| EulerAngle | getHeadPose() | Returns the armor stand's head's current pose as a
  EulerAngle. | 
| ItemStack | getHelmet() | Deprecated.
 prefer  EntityEquipment.getHelmet() | 
| ItemStack | getItem(EquipmentSlot slot) | Returns the item the armor stand has
 equip in the given equipment slot | 
| ItemStack | getItemInHand() | Deprecated.
 prefer  getItem(EquipmentSlot)// Paper | 
| EulerAngle | getLeftArmPose() | Returns the armor stand's left arm's current pose as a
  EulerAngle. | 
| EulerAngle | getLeftLegPose() | Returns the armor stand's left leg's current pose as a
  EulerAngle. | 
| ItemStack | getLeggings() | Deprecated.
 | 
| EulerAngle | getRightArmPose() | Returns the armor stand's right arm's current pose as a
  EulerAngle. | 
| EulerAngle | getRightLegPose() | Returns the armor stand's right leg's current pose as a
  EulerAngle. | 
| boolean | hasArms() | Returns whether this armor stand has arms. | 
| boolean | hasBasePlate() | Returns whether the armor stand has a base plate. | 
| boolean | hasEquipmentLock(EquipmentSlot slot,
                ArmorStand.LockType lockType) | Returns if the ArmorStand has the specified
  locking mechanism. | 
| boolean | isMarker() | Returns whether this armor stand is a marker, meaning it has a very small
 collision box. | 
| boolean | isSlotDisabled(EquipmentSlot slot) | Check if a specific slot is disabled | 
| boolean | isSmall() | Returns whether this armor stand is scaled down. | 
| boolean | isVisible() | Returns whether the armor stand should be visible or not. | 
| void | removeDisabledSlots(EquipmentSlot... slots) | Remove the given slots from the disabled
 slots list, enabling them. | 
| void | removeEquipmentLock(EquipmentSlot slot,
                   ArmorStand.LockType lockType) | Remove a  locking mechanism. | 
| void | setArms(boolean arms) | Sets whether this armor stand has arms. | 
| void | setBasePlate(boolean basePlate) | Sets whether the armor stand has a base plate. | 
| void | setBodyPose(EulerAngle pose) | Sets the armor stand's body's current pose as a
  EulerAngle. | 
| void | setBoots(ItemStack item) | Deprecated.
 | 
| void | setCanMove(boolean move) | Sets if this armor stand can move. | 
| void | setCanTick(boolean tick) | Sets if this armor stand can tick. | 
| void | setChestplate(ItemStack item) | Deprecated.
 | 
| void | setDisabledSlots(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. | 
| void | setHeadPose(EulerAngle pose) | Sets the armor stand's head's current pose as a
  EulerAngle. | 
| void | setHelmet(ItemStack item) | Deprecated.
 | 
| void | setItem(EquipmentSlot slot,
       ItemStack item) | Sets the item the armor stand has
 equip in the given equipment slot | 
| void | setItemInHand(ItemStack item) | Deprecated.
 prefer
  setItem(EquipmentSlot, ItemStack)// Paper | 
| void | setLeftArmPose(EulerAngle pose) | Sets the armor stand's left arm's current pose as a
  EulerAngle. | 
| void | setLeftLegPose(EulerAngle pose) | Sets the armor stand's left leg's current pose as a
  EulerAngle. | 
| void | setLeggings(ItemStack item) | Deprecated.
 | 
| void | setMarker(boolean marker) | Sets whether this armor stand is a marker, meaning it has a very small
 collision box. | 
| void | setRightArmPose(EulerAngle pose) | Sets the armor stand's right arm's current pose as a
  EulerAngle. | 
| void | setRightLegPose(EulerAngle pose) | Sets the armor stand's right leg's current pose as a
  EulerAngle. | 
| void | setSmall(boolean small) | Sets whether this armor stand is scaled down. | 
| void | setVisible(boolean visible) | Sets whether the armor stand should be visible or not. | 
getAttributegetName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessagedamage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthaddPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncaddPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHandgetMetadata, hasMetadata, removeMetadata, setMetadatagetCustomName, setCustomNameaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentgetPersistentDataContainerlaunchProjectile, launchProjectileisOp, setOp@NotNull @Deprecated ItemStack getItemInHand()
getItem(EquipmentSlot) // PaperLivingEntity.getEquipment()@Deprecated void setItemInHand(@Nullable ItemStack item)
setItem(EquipmentSlot, ItemStack) // Paperitem - the item to holdLivingEntity.getEquipment()@NotNull @Deprecated ItemStack getBoots()
EntityEquipment.getBoots()LivingEntity.getEquipment()@Deprecated void setBoots(@Nullable ItemStack item)
item - the item to wearLivingEntity.getEquipment()@NotNull @Deprecated ItemStack getLeggings()
LivingEntity.getEquipment()@Deprecated void setLeggings(@Nullable ItemStack item)
item - the item to wearLivingEntity.getEquipment()@NotNull @Deprecated ItemStack getChestplate()
LivingEntity.getEquipment()@Deprecated void setChestplate(@Nullable ItemStack item)
item - the item to wearLivingEntity.getEquipment()@NotNull @Deprecated ItemStack getHelmet()
EntityEquipment.getHelmet()LivingEntity.getEquipment()@Deprecated void setHelmet(@Nullable ItemStack item)
item - the item to wearLivingEntity.getEquipment()@NotNull EulerAngle getBodyPose()
EulerAngle.void setBodyPose(@NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull EulerAngle getLeftArmPose()
EulerAngle.void setLeftArmPose(@NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull EulerAngle getRightArmPose()
EulerAngle.void setRightArmPose(@NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull EulerAngle getLeftLegPose()
EulerAngle.void setLeftLegPose(@NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull EulerAngle getRightLegPose()
EulerAngle.void setRightLegPose(@NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull EulerAngle getHeadPose()
EulerAngle.void setHeadPose(@NotNull EulerAngle pose)
EulerAngle.pose - the current poseboolean hasBasePlate()
void setBasePlate(boolean basePlate)
basePlate - whether is has a base plateboolean isVisible()
void setVisible(boolean visible)
visible - whether the stand is visible or notboolean hasArms()
void setArms(boolean arms)
arms - whether this has arms or notboolean isSmall()
void setSmall(boolean small)
small - whether this is scaled downboolean isMarker()
void setMarker(boolean marker)
marker - whether this is a markervoid addEquipmentLock(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType)
locking mechanism.slot - the equipment slot to locklockType - the LockType to lock the equipment slot withvoid removeEquipmentLock(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType)
locking mechanism.slot - the equipment slot to changelockType - the lockType to removeboolean hasEquipmentLock(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType)
locking mechanism.slot - the EquipmentSlot to testlockType - the LockType to testboolean canMove()
The default value is true.
true if this armour stand can move, false otherwisevoid setCanMove(boolean move)
move - true if this armour stand can move, false otherwiseboolean canTick()
The default value is defined in paper.yml.
true if this armour stand can tick, false otherwisevoid setCanTick(boolean tick)
tick - true if this armour stand can tick, false otherwise@NotNull ItemStack getItem(@NotNull EquipmentSlot slot)
slot - the equipment slot to getvoid setItem(@NotNull EquipmentSlot slot, @Nullable ItemStack item)
slot - the equipment slot to setitem - the item to hold@NotNull Set<EquipmentSlot> getDisabledSlots()
void setDisabledSlots(@NotNull EquipmentSlot... slots)
slots - var-arg array of slots to lockvoid addDisabledSlots(@NotNull EquipmentSlot... slots)
slots - var-arg array of slots to lockvoid removeDisabledSlots(@NotNull EquipmentSlot... slots)
slots - var-arg array of slots to unlockboolean isSlotDisabled(@NotNull EquipmentSlot slot)
slot - The slot to checktrue if the slot is disabled, else false.Copyright © 2021. All rights reserved.