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 |
addEquipmentLock(EquipmentSlot slot,
ArmorStand.LockType lockType)
Locks the equipment slot with the specified
locking mechanism . |
EulerAngle |
getBodyPose()
Returns the armor stand's body's current pose as a
EulerAngle . |
ItemStack |
getBoots()
Deprecated.
prefer
EntityEquipment.getBoots() |
ItemStack |
getChestplate()
Deprecated.
|
EulerAngle |
getHeadPose()
Returns the armor stand's head's current pose as a
EulerAngle . |
ItemStack |
getHelmet()
Deprecated.
prefer
EntityEquipment.getHelmet() |
ItemStack |
getItemInHand()
Deprecated.
|
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 |
isSmall()
Returns whether this armor stand is scaled down.
|
boolean |
isVisible()
Returns whether the armor stand should be visible or not.
|
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 |
setChestplate(ItemStack item)
Deprecated.
|
void |
setHeadPose(EulerAngle pose)
Sets the armor stand's head's current pose as a
EulerAngle . |
void |
setHelmet(ItemStack item)
Deprecated.
|
void |
setItemInHand(ItemStack item)
Deprecated.
|
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.
|
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, 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
getAttribute
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, 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
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getPersistentDataContainer
launchProjectile, launchProjectile
@NotNull @Deprecated ItemStack getItemInHand()
EntityEquipment.getItemInHand()
LivingEntity.getEquipment()
@Deprecated void setItemInHand(@Nullable ItemStack item)
EntityEquipment.setItemInHand(org.bukkit.inventory.ItemStack)
item
- the item to holdLivingEntity.getEquipment()
@NotNull @Deprecated ItemStack getBoots()
EntityEquipment.getBoots()
LivingEntity.getEquipment()
@Deprecated void setBoots(@Nullable ItemStack item)
EntityEquipment.setBoots(org.bukkit.inventory.ItemStack)
item
- the item to wearLivingEntity.getEquipment()
@NotNull @Deprecated ItemStack getLeggings()
EntityEquipment.getLeggings()
LivingEntity.getEquipment()
@Deprecated void setLeggings(@Nullable ItemStack item)
EntityEquipment.setLeggings(org.bukkit.inventory.ItemStack)
item
- the item to wearLivingEntity.getEquipment()
@NotNull @Deprecated ItemStack getChestplate()
EntityEquipment.getChestplate()
LivingEntity.getEquipment()
@Deprecated void setChestplate(@Nullable ItemStack item)
EntityEquipment.setChestplate(org.bukkit.inventory.ItemStack)
item
- the item to wearLivingEntity.getEquipment()
@NotNull @Deprecated ItemStack getHelmet()
EntityEquipment.getHelmet()
LivingEntity.getEquipment()
@Deprecated void setHelmet(@Nullable ItemStack item)
EntityEquipment.setHelmet(org.bukkit.inventory.ItemStack)
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 testCopyright © 2021. All rights reserved.