Package org.bukkit.entity
Interface ArmorStand
- All Superinterfaces:
Attributable
,CommandSender
,Damageable
,Entity
,LivingEntity
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Represents types of locking mechanisms for ArmorStand equipment.Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEquipmentLock
(EquipmentSlot slot, ArmorStand.LockType lockType) Locks the equipment slot with the specifiedlocking mechanism
.Returns the armor stand's body's current pose as aEulerAngle
.getBoots()
Deprecated.Deprecated.Returns the armor stand's head's current pose as aEulerAngle
.Deprecated.preferEntityEquipment.getHelmet()
Deprecated.Returns the armor stand's left arm's current pose as aEulerAngle
.Returns the armor stand's left leg's current pose as aEulerAngle
.Deprecated.Returns the armor stand's right arm's current pose as aEulerAngle
.Returns the armor stand's right leg's current pose as aEulerAngle
.boolean
hasArms()
Returns whether this armor stand has arms.boolean
Returns whether the armor stand has a base plate.boolean
hasEquipmentLock
(EquipmentSlot slot, ArmorStand.LockType lockType) Returns if the ArmorStand has the specifiedlocking mechanism
.boolean
isMarker()
Returns whether this armor stand is a marker, meaning it has a very small collision box.boolean
isSmall()
Returns whether this armor stand is scaled down.boolean
Returns whether the armor stand should be visible or not.void
removeEquipmentLock
(EquipmentSlot slot, ArmorStand.LockType lockType) Remove alocking 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 aEulerAngle
.void
Deprecated.void
setChestplate
(ItemStack item) Deprecated.void
setHeadPose
(EulerAngle pose) Sets the armor stand's head's current pose as aEulerAngle
.void
Deprecated.void
setItemInHand
(ItemStack item) Deprecated.void
setLeftArmPose
(EulerAngle pose) Sets the armor stand's left arm's current pose as aEulerAngle
.void
setLeftLegPose
(EulerAngle pose) Sets the armor stand's left leg's current pose as aEulerAngle
.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 aEulerAngle
.void
setRightLegPose
(EulerAngle pose) Sets the armor stand's right leg's current pose as aEulerAngle
.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.Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Method Details
-
getItemInHand
Deprecated.Returns the item the armor stand is currently holding.- Returns:
- the held item
- See Also:
-
setItemInHand
Deprecated.Sets the item the armor stand is currently holding.- Parameters:
item
- the item to hold- See Also:
-
getBoots
Deprecated.preferEntityEquipment.getBoots()
Returns the item currently being worn by the armor stand on its feet.- Returns:
- the worn item
- See Also:
-
setBoots
Deprecated.Sets the item currently being worn by the armor stand on its feet.- Parameters:
item
- the item to wear- See Also:
-
getLeggings
Deprecated.Returns the item currently being worn by the armor stand on its legs.- Returns:
- the worn item
- See Also:
-
setLeggings
Deprecated.Sets the item currently being worn by the armor stand on its legs.- Parameters:
item
- the item to wear- See Also:
-
getChestplate
Deprecated.Returns the item currently being worn by the armor stand on its chest.- Returns:
- the worn item
- See Also:
-
setChestplate
Deprecated.Sets the item currently being worn by the armor stand on its chest.- Parameters:
item
- the item to wear- See Also:
-
getHelmet
Deprecated.preferEntityEquipment.getHelmet()
Returns the item currently being worn by the armor stand on its head.- Returns:
- the worn item
- See Also:
-
setHelmet
Deprecated.Sets the item currently being worn by the armor stand on its head.- Parameters:
item
- the item to wear- See Also:
-
getBodyPose
Returns the armor stand's body's current pose as aEulerAngle
.- Returns:
- the current pose
-
setBodyPose
Sets the armor stand's body's current pose as aEulerAngle
.- Parameters:
pose
- the current pose
-
getLeftArmPose
Returns the armor stand's left arm's current pose as aEulerAngle
.- Returns:
- the current pose
-
setLeftArmPose
Sets the armor stand's left arm's current pose as aEulerAngle
.- Parameters:
pose
- the current pose
-
getRightArmPose
Returns the armor stand's right arm's current pose as aEulerAngle
.- Returns:
- the current pose
-
setRightArmPose
Sets the armor stand's right arm's current pose as aEulerAngle
.- Parameters:
pose
- the current pose
-
getLeftLegPose
Returns the armor stand's left leg's current pose as aEulerAngle
.- Returns:
- the current pose
-
setLeftLegPose
Sets the armor stand's left leg's current pose as aEulerAngle
.- Parameters:
pose
- the current pose
-
getRightLegPose
Returns the armor stand's right leg's current pose as aEulerAngle
.- Returns:
- the current pose
-
setRightLegPose
Sets the armor stand's right leg's current pose as aEulerAngle
.- Parameters:
pose
- the current pose
-
getHeadPose
Returns the armor stand's head's current pose as aEulerAngle
.- Returns:
- the current pose
-
setHeadPose
Sets the armor stand's head's current pose as aEulerAngle
.- 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
Locks the equipment slot with the specifiedlocking mechanism
.- Parameters:
slot
- the equipment slot to locklockType
- the LockType to lock the equipment slot with
-
removeEquipmentLock
Remove alocking mechanism
.- Parameters:
slot
- the equipment slot to changelockType
- the LockType to remove
-
hasEquipmentLock
Returns if the ArmorStand has the specifiedlocking mechanism
.- Parameters:
slot
- the EquipmentSlot to testlockType
- the LockType to test- Returns:
- if the ArmorStand has been locked with the parameters specified
-
EntityEquipment.getBoots()