public interface ArmorStand extends LivingEntity
| Modifier and Type | Interface and Description |
|---|---|
static class |
ArmorStand.LockType
Represents types of locking mechanisms for ArmorStand equipment.
|
Entity.Spigot| Modifier and Type | Method and 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(@NotNull EquipmentSlot slot,
@NotNull 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.
|
@NotNull EulerAngle |
getBodyPose()
Returns the armor stand's body's current pose as a
EulerAngle. |
@NotNull ItemStack |
getBoots()
Deprecated.
prefer
EntityEquipment.getBoots() |
@NotNull ItemStack |
getChestplate()
Deprecated.
|
Set<EquipmentSlot> |
getDisabledSlots()
Get the list of disabled slots
|
@NotNull EulerAngle |
getHeadPose()
Returns the armor stand's head's current pose as a
EulerAngle. |
@NotNull ItemStack |
getHelmet()
Deprecated.
prefer
EntityEquipment.getHelmet() |
@NotNull ItemStack |
getItem(EquipmentSlot slot)
Returns the item the armor stand has
equip in the given equipment slot
|
@NotNull ItemStack |
getItemInHand()
Deprecated.
prefer
getItem(EquipmentSlot) // Paper |
@NotNull EulerAngle |
getLeftArmPose()
Returns the armor stand's left arm's current pose as a
EulerAngle. |
@NotNull EulerAngle |
getLeftLegPose()
Returns the armor stand's left leg's current pose as a
EulerAngle. |
@NotNull ItemStack |
getLeggings()
Deprecated.
|
@NotNull EulerAngle |
getRightArmPose()
Returns the armor stand's right arm's current pose as a
EulerAngle. |
@NotNull 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(@NotNull EquipmentSlot slot,
@NotNull 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(@NotNull EquipmentSlot slot,
@NotNull 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(@NotNull EulerAngle pose)
Sets the armor stand's body's current pose as a
EulerAngle. |
void |
setBoots(@Nullable 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(@Nullable 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(@NotNull EulerAngle pose)
Sets the armor stand's head's current pose as a
EulerAngle. |
void |
setHelmet(@Nullable ItemStack item)
Deprecated.
|
void |
setItem(EquipmentSlot slot,
@Nullable ItemStack item)
Sets the item the armor stand has
equip in the given equipment slot
|
void |
setItemInHand(@Nullable ItemStack item)
Deprecated.
prefer
setItem(EquipmentSlot, ItemStack) // Paper |
void |
setLeftArmPose(@NotNull EulerAngle pose)
Sets the armor stand's left arm's current pose as a
EulerAngle. |
void |
setLeftLegPose(@NotNull EulerAngle pose)
Sets the armor stand's left leg's current pose as a
EulerAngle. |
void |
setLeggings(@Nullable 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(@NotNull EulerAngle pose)
Sets the armor stand's right arm's current pose as a
EulerAngle. |
void |
setRightLegPose(@NotNull 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.
|
addPotionEffect, 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, playAnimation, 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, swingOffHandgetAttribute, registerAttributedamage, damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthaddPassenger, addScoreboardTag, asHoverEvent, 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, teleportAsyncgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageaudience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudienceaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpcustomName, customName, getCustomName, setCustomNamegetPersistentDataContainerasHoverEvent, unboxlaunchProjectile, launchProjectile@NotNull @Deprecated @NotNull ItemStack getItemInHand()
getItem(EquipmentSlot) // PaperLivingEntity.getEquipment()@Deprecated void setItemInHand(@Nullable @Nullable ItemStack item)
setItem(EquipmentSlot, ItemStack) // Paperitem - the item to holdLivingEntity.getEquipment()@NotNull @Deprecated @NotNull ItemStack getBoots()
EntityEquipment.getBoots()LivingEntity.getEquipment()@Deprecated void setBoots(@Nullable @Nullable ItemStack item)
EntityEquipment.setBoots(org.bukkit.inventory.ItemStack)item - the item to wearLivingEntity.getEquipment()@NotNull @Deprecated @NotNull ItemStack getLeggings()
EntityEquipment.getLeggings()LivingEntity.getEquipment()@Deprecated void setLeggings(@Nullable @Nullable ItemStack item)
EntityEquipment.setLeggings(org.bukkit.inventory.ItemStack)item - the item to wearLivingEntity.getEquipment()@NotNull @Deprecated @NotNull ItemStack getChestplate()
EntityEquipment.getChestplate()LivingEntity.getEquipment()@Deprecated void setChestplate(@Nullable @Nullable ItemStack item)
EntityEquipment.setChestplate(org.bukkit.inventory.ItemStack)item - the item to wearLivingEntity.getEquipment()@NotNull @Deprecated @NotNull ItemStack getHelmet()
EntityEquipment.getHelmet()LivingEntity.getEquipment()@Deprecated void setHelmet(@Nullable @Nullable ItemStack item)
EntityEquipment.setHelmet(org.bukkit.inventory.ItemStack)item - the item to wearLivingEntity.getEquipment()@NotNull @NotNull EulerAngle getBodyPose()
EulerAngle.void setBodyPose(@NotNull @NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull @NotNull EulerAngle getLeftArmPose()
EulerAngle.void setLeftArmPose(@NotNull @NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull @NotNull EulerAngle getRightArmPose()
EulerAngle.void setRightArmPose(@NotNull @NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull @NotNull EulerAngle getLeftLegPose()
EulerAngle.void setLeftLegPose(@NotNull @NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull @NotNull EulerAngle getRightLegPose()
EulerAngle.void setRightLegPose(@NotNull @NotNull EulerAngle pose)
EulerAngle.pose - the current pose@NotNull @NotNull EulerAngle getHeadPose()
EulerAngle.void setHeadPose(@NotNull @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 @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType)
locking mechanism.slot - the equipment slot to locklockType - the LockType to lock the equipment slot withvoid removeEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType)
locking mechanism.slot - the equipment slot to changelockType - the LockType to removeboolean hasEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @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 @NotNull ItemStack getItem(@NotNull EquipmentSlot slot)
slot - the equipment slot to getvoid setItem(@NotNull EquipmentSlot slot, @Nullable @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.