Package org.bukkit.entity
Interface ArmorStand
- All Superinterfaces:
- Attributable,- Audience,- CommandSender,- Damageable,- DataComponentView,- Entity,- Frictional,- HoverEventSource<HoverEvent.ShowEntity>,- LivingEntity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- PersistentDataViewHolder,- Pointered,- ProjectileSource,- ServerOperator,- Sound.Emitter
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents types of locking mechanisms for ArmorStand equipment.Nested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDisabledSlots(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.voidaddEquipmentLock(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) Locks the equipment slot with the specifiedlocking mechanism.booleancanMove()Tests if this armor stand can move.booleancanTick()Tests if this armor stand can tick.Returns the armor stand's body's current pose as aEulerAngle.Returns the ArmorStand's body rotations asRotations.getBoots()Deprecated.Deprecated.Get the list of disabled slotsGets the inventory with the equipment worn by the living entity.Returns the armor stand's head's current pose as aEulerAngle.Returns the ArmorStand's head rotations asRotations.Deprecated.preferEntityEquipment.getHelmet()getItem(EquipmentSlot slot) Returns the item the armor stand has equipped in the given equipment slotDeprecated.prefergetItem(EquipmentSlot)Returns the armor stand's left arm's current pose as aEulerAngle.Returns the ArmorStand's left arm rotations asRotations.Returns the armor stand's left leg's current pose as aEulerAngle.Returns the ArmorStand's left leg rotations asRotations.Deprecated.Returns the armor stand's right arm's current pose as aEulerAngle.Returns the ArmorStand's right arm rotations asRotations.Returns the armor stand's right leg's current pose as aEulerAngle.Returns the ArmorStand's right leg rotations asRotations.booleanhasArms()Returns whether this armor stand has arms.booleanReturns whether the armor stand has a base plate.booleanhasEquipmentLock(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) Returns if the ArmorStand has the specifiedlocking mechanism.booleanisMarker()Returns whether this armor stand is a marker, meaning it has a very small collision box.booleanisSlotDisabled(EquipmentSlot slot) Check if a specific slot is disabledbooleanisSmall()Returns whether this armor stand is scaled down.booleanReturns whether the armor stand should be visible or not.voidremoveDisabledSlots(EquipmentSlot... slots) Remove the given slots from the disabled slots list, enabling them.voidremoveEquipmentLock(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) Remove alocking mechanism.voidsetArms(boolean arms) Sets whether this armor stand has arms.voidsetBasePlate(boolean basePlate) Sets whether the armor stand has a base plate.voidsetBodyPose(@NotNull EulerAngle pose) Sets the armor stand's body's current pose as aEulerAngle.voidsetBodyRotations(Rotations rotations) Sets the ArmorStand's body rotations asRotations.voidDeprecated.voidsetCanMove(boolean move) Sets if this armor stand can move.voidsetCanTick(boolean tick) Sets if this armor stand can tick.voidsetChestplate(@Nullable ItemStack item) Deprecated.voidsetDisabledSlots(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.voidsetHeadPose(@NotNull EulerAngle pose) Sets the armor stand's head's current pose as aEulerAngle.voidsetHeadRotations(Rotations rotations) Sets the ArmorStand's head rotations asRotations.voidDeprecated.voidsetItem(EquipmentSlot slot, @Nullable ItemStack item) Sets the item the armor stand has equipped in the given equipment slotvoidsetItemInHand(@Nullable ItemStack item) Deprecated.voidsetLeftArmPose(@NotNull EulerAngle pose) Sets the armor stand's left arm's current pose as aEulerAngle.voidsetLeftArmRotations(Rotations rotations) Sets the ArmorStand's left arm rotations asRotations.voidsetLeftLegPose(@NotNull EulerAngle pose) Sets the armor stand's left leg's current pose as aEulerAngle.voidsetLeftLegRotations(Rotations rotations) Sets the ArmorStand's left leg rotations asRotations.voidsetLeggings(@Nullable ItemStack item) Deprecated.voidsetMarker(boolean marker) Sets whether this armor stand is a marker, meaning it has a very small collision box.voidSets the armor stand's right arm's current pose as aEulerAngle.voidsetRightArmRotations(Rotations rotations) Sets the ArmorStand's right arm rotations asRotations.voidSets the armor stand's right leg's current pose as aEulerAngle.voidsetRightLegRotations(Rotations rotations) Sets the ArmorStand's right leg rotations asRotations.voidsetSmall(boolean small) Sets whether this armor stand is scaled down.voidsetVisible(boolean visible) Sets whether the armor stand should be visible or not.Methods inherited from interface org.bukkit.attribute.AttributablegetAttribute, registerAttributeMethods inherited from interface net.kyori.adventure.audience.AudienceclearResourcePacks, clearTitle, closeDialog, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showDialog, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSendergetName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Damageabledamage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, heal, heal, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface io.papermc.paper.datacomponent.DataComponentViewgetData, getDataOrDefault, hasDataMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, asHoverEvent, broadcastHurtAnimation, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getAsString, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPickItemStack, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getRider, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getVisualFire, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, hasRider, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isImmuneToFire, isInBubbleColumn, isInDaylight, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isRidable, isRidableInWater, isSilent, isSneaking, isTicking, isTrackedBy, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, lookAt, lookAt, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setImmuneToFire, setInvisible, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface io.papermc.paper.entity.FrictionalgetFrictionState, setFrictionStateMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface org.bukkit.entity.LivingEntityaddPotionEffect, addPotionEffect, addPotionEffects, attack, broadcastSlotBreak, broadcastSlotBreak, canBreatheUnderwater, canUseEquipmentSlot, clearActiveItem, clearActivePotionEffects, completeUsingActiveItem, damageItemStack, damageItemStack, getActiveItem, getActiveItemHand, getActiveItemRemainingTime, getActiveItemUsedTime, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getBodyYaw, getCanPickupItems, getCategory, getCollidableExemptions, getCombatTracker, getDeathSound, getDrinkingSound, getEatingSound, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getForwardsMovement, getHandRaised, getHandRaisedTime, getHurtDirection, getHurtSound, getItemInUse, getItemInUseTicks, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNextArrowRemoval, getNextBeeStingerRemoval, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSidewaysMovement, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, getUpwardsMovement, hasActiveItem, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isHandRaised, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, knockback, playHurtAnimation, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, rayTraceEntities, rayTraceEntities, removePotionEffect, setActiveItemRemainingTime, setAI, setArrowCooldown, setArrowsInBody, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setBodyYaw, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setItemInUseTicks, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNextArrowRemoval, setNextBeeStingerRemoval, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setRiptiding, setShieldBlockingDelay, setShouldBurnInDay, setSwimming, shouldBurnInDay, startUsingItem, swingHand, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile, launchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getItemInHandDeprecated.prefergetItem(EquipmentSlot)Returns the item the armor stand is currently holding.- Returns:
- the held item
- See Also:
 
- 
setItemInHandDeprecated.Sets the item the armor stand is currently holding.- Parameters:
- item- the item to hold
- See Also:
 
- 
getBootsDeprecated.preferEntityEquipment.getBoots()Returns the item currently being worn by the armor stand on its feet.- Returns:
- the worn item
- See Also:
 
- 
setBootsDeprecated.Sets the item currently being worn by the armor stand on its feet.- Parameters:
- item- the item to wear
- See Also:
 
- 
getLeggingsDeprecated.Returns the item currently being worn by the armor stand on its legs.- Returns:
- the worn item
- See Also:
 
- 
setLeggingsDeprecated.Sets the item currently being worn by the armor stand on its legs.- Parameters:
- item- the item to wear
- See Also:
 
- 
getChestplateDeprecated.Returns the item currently being worn by the armor stand on its chest.- Returns:
- the worn item
- See Also:
 
- 
setChestplateDeprecated.Sets the item currently being worn by the armor stand on its chest.- Parameters:
- item- the item to wear
- See Also:
 
- 
getHelmetDeprecated.preferEntityEquipment.getHelmet()Returns the item currently being worn by the armor stand on its head.- Returns:
- the worn item
- See Also:
 
- 
setHelmetDeprecated.Sets the item currently being worn by the armor stand on its head.- Parameters:
- item- the item to wear
- See Also:
 
- 
getBodyPoseReturns the armor stand's body's current pose as aEulerAngle.- Returns:
- the current pose
 
- 
setBodyPoseSets the armor stand's body's current pose as aEulerAngle.- Parameters:
- pose- the current pose
 
- 
getLeftArmPoseReturns the armor stand's left arm's current pose as aEulerAngle.- Returns:
- the current pose
 
- 
setLeftArmPoseSets the armor stand's left arm's current pose as aEulerAngle.- Parameters:
- pose- the current pose
 
- 
getRightArmPoseReturns the armor stand's right arm's current pose as aEulerAngle.- Returns:
- the current pose
 
- 
setRightArmPoseSets the armor stand's right arm's current pose as aEulerAngle.- Parameters:
- pose- the current pose
 
- 
getLeftLegPoseReturns the armor stand's left leg's current pose as aEulerAngle.- Returns:
- the current pose
 
- 
setLeftLegPoseSets the armor stand's left leg's current pose as aEulerAngle.- Parameters:
- pose- the current pose
 
- 
getRightLegPoseReturns the armor stand's right leg's current pose as aEulerAngle.- Returns:
- the current pose
 
- 
setRightLegPoseSets the armor stand's right leg's current pose as aEulerAngle.- Parameters:
- pose- the current pose
 
- 
getHeadPoseReturns the armor stand's head's current pose as aEulerAngle.- Returns:
- the current pose
 
- 
setHeadPoseSets the armor stand's head's current pose as aEulerAngle.- Parameters:
- pose- the current pose
 
- 
hasBasePlateboolean hasBasePlate()Returns whether the armor stand has a base plate.- Returns:
- whether it has a base plate
 
- 
setBasePlatevoid setBasePlate(boolean basePlate) Sets whether the armor stand has a base plate.- Parameters:
- basePlate- whether it has a base plate
 
- 
isVisibleboolean isVisible()Returns whether the armor stand should be visible or not.- Returns:
- whether the stand is visible or not
 
- 
setVisiblevoid setVisible(boolean visible) Sets whether the armor stand should be visible or not.- Parameters:
- visible- whether the stand is visible or not
 
- 
hasArmsboolean hasArms()Returns whether this armor stand has arms.- Returns:
- whether this has arms or not
 
- 
setArmsvoid setArms(boolean arms) Sets whether this armor stand has arms.- Parameters:
- arms- whether this has arms or not
 
- 
isSmallboolean isSmall()Returns whether this armor stand is scaled down.- Returns:
- whether this is scaled down
 
- 
setSmallvoid setSmall(boolean small) Sets whether this armor stand is scaled down.- Parameters:
- small- whether this is scaled down
 
- 
isMarkerboolean isMarker()Returns whether this armor stand is a marker, meaning it has a very small collision box.- Returns:
- whether this is a marker
 
- 
setMarkervoid 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
 
- 
addEquipmentLockvoid addEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType) Locks the equipment slot with the specifiedlocking mechanism.- Parameters:
- slot- the equipment slot to lock
- lockType- the LockType to lock the equipment slot with
 
- 
removeEquipmentLockvoid removeEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType) Remove alocking mechanism.- Parameters:
- slot- the equipment slot to change
- lockType- the LockType to remove
 
- 
hasEquipmentLockboolean hasEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType) Returns if the ArmorStand has the specifiedlocking mechanism.- Parameters:
- slot- the EquipmentSlot to test
- lockType- the LockType to test
- Returns:
- if the ArmorStand has been locked with the parameters specified
 
- 
canMoveboolean canMove()Tests if this armor stand can move.The default value is true.- Returns:
- trueif this armour stand can move,- falseotherwise
 
- 
setCanMovevoid setCanMove(boolean move) Sets if this armor stand can move.- Parameters:
- move-- trueif this armour stand can move,- falseotherwise
 
- 
getEquipment@NotNull EntityEquipment getEquipment()Description copied from interface:LivingEntityGets the inventory with the equipment worn by the living entity.- Specified by:
- getEquipmentin interface- LivingEntity
- Returns:
- the living entity's inventory
 
- 
canTickboolean canTick()Tests if this armor stand can tick.The default value is defined in paper.yml.- Returns:
- trueif this armour stand can tick,- falseotherwise
 
- 
setCanTickvoid setCanTick(boolean tick) Sets if this armor stand can tick.- Parameters:
- tick-- trueif this armour stand can tick,- falseotherwise
 
- 
getItemReturns the item the armor stand has equipped in the given equipment slot- Parameters:
- slot- the equipment slot to get
- Returns:
- the ItemStack in the equipment slot
- Throws:
- IllegalArgumentException- if the slot is invalid for the entity
 
- 
setItemSets the item the armor stand has equipped in the given equipment slot- Parameters:
- slot- the equipment slot to set
- item- the item to hold
- Throws:
- IllegalArgumentException- if the slot is invalid for the entity
 
- 
getDisabledSlotsGet the list of disabled slots- Returns:
- list of disabled slots
 
- 
setDisabledSlotsSet 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
 
- 
addDisabledSlotsDisable 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
 
- 
removeDisabledSlotsRemove 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
 
- 
isSlotDisabledCheck if a specific slot is disabled- Parameters:
- slot- The slot to check
- Returns:
- trueif the slot is disabled, else- false.
 
- 
getBodyRotationsReturns the ArmorStand's body rotations asRotations.- Returns:
- the current rotations
 
- 
setBodyRotationsSets the ArmorStand's body rotations asRotations.- Parameters:
- rotations- the current rotations
 
- 
getLeftArmRotationsReturns the ArmorStand's left arm rotations asRotations.- Returns:
- the current rotations
 
- 
setLeftArmRotationsSets the ArmorStand's left arm rotations asRotations.- Parameters:
- rotations- the current rotations
 
- 
getRightArmRotationsReturns the ArmorStand's right arm rotations asRotations.- Returns:
- the current rotations
 
- 
setRightArmRotationsSets the ArmorStand's right arm rotations asRotations.- Parameters:
- rotations- the current rotations
 
- 
getLeftLegRotationsReturns the ArmorStand's left leg rotations asRotations.- Returns:
- the current rotations
 
- 
setLeftLegRotationsSets the ArmorStand's left leg rotations asRotations.- Parameters:
- rotations- the current rotations
 
- 
getRightLegRotationsReturns the ArmorStand's right leg rotations asRotations.- Returns:
- the current rotations
 
- 
setRightLegRotationsSets the ArmorStand's right leg rotations asRotations.- Parameters:
- rotations- the current rotations
 
- 
getHeadRotationsReturns the ArmorStand's head rotations asRotations.- Returns:
- the current rotations
 
- 
setHeadRotationsSets the ArmorStand's head rotations asRotations.- Parameters:
- rotations- the current rotations
 
 
- 
EntityEquipment.getBoots()