Attributable
, CommandSender
, Damageable
, Entity
, LivingEntity
, Metadatable
, Nameable
, Permissible
, PersistentDataHolder
, ProjectileSource
, ServerOperator
public interface ArmorStand extends LivingEntity
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
void |
addDisabledSlots(@NotNull 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.
|
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 |
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(@NotNull EquipmentSlot... slots) |
Remove the given slots from the disabled
slots list, enabling them.
|
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(@NotNull 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.
|
getAttribute
getName, sendMessage, sendMessage, sendMessage, sendMessage
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, 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, isInsideVehicle, isInvulnerable, 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, teleportAsync, teleportAsync
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActiveItem, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, 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, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHand
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
launchProjectile, launchProjectile
isOp, setOp
@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)
item
- the item to wearLivingEntity.getEquipment()
@NotNull @Deprecated @NotNull ItemStack getLeggings()
LivingEntity.getEquipment()
@Deprecated void setLeggings(@Nullable @Nullable ItemStack item)
item
- the item to wearLivingEntity.getEquipment()
@NotNull @Deprecated @NotNull ItemStack getChestplate()
LivingEntity.getEquipment()
@Deprecated void setChestplate(@Nullable @Nullable ItemStack item)
item
- the item to wearLivingEntity.getEquipment()
@NotNull @Deprecated @NotNull ItemStack getHelmet()
EntityEquipment.getHelmet()
LivingEntity.getEquipment()
@Deprecated void setHelmet(@Nullable @Nullable ItemStack item)
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 markerboolean 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 @NotNull EquipmentSlot... slots)
slots
- var-arg array of slots to lockvoid addDisabledSlots(@NotNull @NotNull EquipmentSlot... slots)
slots
- var-arg array of slots to lockvoid removeDisabledSlots(@NotNull @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 © 2020. All rights reserved.