Package be.seeseemelk.mockbukkit.entity
Class ArmorStandMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.LivingEntityMock
be.seeseemelk.mockbukkit.entity.ArmorStandMock
- All Implemented Interfaces:
MessageTarget
,Frictional
,net.kyori.adventure.audience.Audience
,net.kyori.adventure.pointer.Pointered
,net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,Attributable
,CommandSender
,ArmorStand
,Damageable
,Entity
,LivingEntity
,Metadatable
,Nameable
,Permissible
,ServerOperator
,PersistentDataHolder
,ProjectileSource
Mock implementation of an
ArmorStand
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.ArmorStand
ArmorStand.LockType
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
alive, attributes, health
Fields inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDisabledSlots
(@NotNull EquipmentSlot... slots) void
addEquipmentLock
(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) boolean
canMove()
boolean
canTick()
@NotNull EulerAngle
@NotNull Rotations
@NotNull ItemStack
getBoots()
Deprecated.@NotNull ItemStack
Deprecated.@NotNull Set<EquipmentSlot>
@NotNull EulerAngle
@NotNull Rotations
@NotNull ItemStack
Deprecated.@NotNull ItemStack
getItem
(@NotNull EquipmentSlot slot) @NotNull ItemStack
Deprecated.@NotNull EulerAngle
@NotNull Rotations
@NotNull EulerAngle
@NotNull Rotations
@NotNull ItemStack
Deprecated.@NotNull EulerAngle
@NotNull Rotations
@NotNull EulerAngle
@NotNull Rotations
@NotNull EntityType
getType()
boolean
hasArms()
boolean
boolean
hasEquipmentLock
(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) boolean
isMarker()
boolean
isSlotDisabled
(@NotNull EquipmentSlot slot) boolean
isSmall()
boolean
void
removeDisabledSlots
(@NotNull EquipmentSlot... slots) void
removeEquipmentLock
(@NotNull EquipmentSlot slot, @NotNull ArmorStand.LockType lockType) void
setArms
(boolean arms) void
setBasePlate
(boolean basePlate) void
setBodyPose
(@NotNull EulerAngle pose) void
setBodyRotations
(@NotNull Rotations rotations) void
Deprecated.void
setCanMove
(boolean move) void
setCanTick
(boolean tick) void
setChestplate
(@Nullable ItemStack item) Deprecated.void
setDisabledSlots
(@NotNull EquipmentSlot... slots) void
setHeadPose
(@NotNull EulerAngle pose) void
setHeadRotations
(@NotNull Rotations rotations) void
Deprecated.void
setItem
(@NotNull EquipmentSlot slot, @Nullable ItemStack item) void
setItemInHand
(@Nullable ItemStack item) Deprecated.void
setLeftArmPose
(@NotNull EulerAngle pose) void
setLeftArmRotations
(@NotNull Rotations rotations) void
setLeftLegPose
(@NotNull EulerAngle pose) void
setLeftLegRotations
(@NotNull Rotations rotations) void
setLeggings
(@Nullable ItemStack item) Deprecated.void
setMarker
(boolean marker) void
setRightArmPose
(@NotNull EulerAngle pose) void
setRightArmRotations
(@NotNull Rotations rotations) void
setRightLegPose
(@NotNull EulerAngle pose) void
setRightLegRotations
(@NotNull Rotations rotations) void
setSmall
(boolean small) void
setVisible
(boolean visible) Methods inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
addPotionEffect, addPotionEffect, addPotionEffects, attack, broadcastSlotBreak, broadcastSlotBreak, canBreatheUnderwater, clearActiveItem, clearActivePotionEffects, completeUsingActiveItem, damage, damage, damage, damageItemStack, damageItemStack, getAbsorptionAmount, getActiveItem, getActiveItemHand, getActiveItemRemainingTime, getActiveItemUsedTime, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getBeeStingerCooldown, getBeeStingersInBody, getBodyYaw, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getForwardsMovement, getFrictionState, getHandRaised, getHandRaisedTime, getHealth, getHurtDirection, getHurtSound, getItemInUse, getItemInUseTicks, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNextArrowRemoval, getNextBeeStingerRemoval, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSidewaysMovement, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, getUpwardsMovement, hasActiveItem, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isDead, isGliding, isHandRaised, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, isValid, knockback, launchProjectile, launchProjectile, launchProjectile, playHurtAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, rayTraceEntities, registerAttribute, remove, removePotionEffect, resetMaxHealth, setAbsorptionAmount, setActiveItemRemainingTime, setAI, setArrowCooldown, setArrowsInBody, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setBodyYaw, setCanPickupItems, setCollidable, setFrictionState, setGliding, setHealth, setHurtDirection, setItemInUseTicks, setJumping, setKiller, setLastDamage, setLeashHolder, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNextArrowRemoval, setNextBeeStingerRemoval, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, simulateDamage, simulateDamage, startUsingItem, swingMainHand, swingOffHand, teleport
Methods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearMetadata, clearTeleported, collidesAt, copy, copy, createSnapshot, customName, customName, eject, equals, fromMobSpawner, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntityProperty, getEntitySpawnReason, getEntityState, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntry, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSubType, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTeleportCause, getTicksLived, getTrackedBy, getTrackedPlayers, getTransitivePassengers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hashCode, hasMetadata, hasNoPhysics, hasPassengers, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, playEffect, recalculatePermissions, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setNoPhysics, setOp, setPassenger, setPersistent, setPortalCooldown, setPose, setRotation, setSilent, setSneaking, setSpawnReason, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportWithoutEvent, wouldCollideUsing
Methods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.entity.ArmorStand
getEquipment
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute, registerAttribute
Methods inherited from interface net.kyori.adventure.audience.Audience
clearResourcePacks, clearTitle, 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, showTitle, stopSound, stopSound
Methods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, teleportAsync, wouldCollideUsing
Methods inherited from interface io.papermc.paper.entity.Frictional
getFrictionState, setFrictionState
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, broadcastSlotBreak, broadcastSlotBreak, canBreatheUnderwater, clearActiveItem, clearActivePotionEffects, completeUsingActiveItem, damageItemStack, damageItemStack, getActiveItem, getActiveItemHand, getActiveItemRemainingTime, getActiveItemUsedTime, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getBodyYaw, getCanPickupItems, getCategory, getCollidableExemptions, 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, isInvisible, 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, setInvisible, setItemInUseTicks, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNextArrowRemoval, setNextBeeStingerRemoval, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, startUsingItem, swingHand, swingMainHand, swingOffHand
Methods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessage
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile, launchProjectile
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
ArmorStandMock
- Parameters:
server
- The server to create the entity on.uuid
- The UUID of the entity.
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceEntity
- Overrides:
getType
in classEntityMock
-
getBoots
Deprecated.- Specified by:
getBoots
in interfaceArmorStand
-
setBoots
Deprecated.- Specified by:
setBoots
in interfaceArmorStand
-
getLeggings
Deprecated.- Specified by:
getLeggings
in interfaceArmorStand
-
setLeggings
Deprecated.- Specified by:
setLeggings
in interfaceArmorStand
-
getChestplate
Deprecated.- Specified by:
getChestplate
in interfaceArmorStand
-
setChestplate
Deprecated.- Specified by:
setChestplate
in interfaceArmorStand
-
getHelmet
Deprecated.- Specified by:
getHelmet
in interfaceArmorStand
-
setHelmet
Deprecated.- Specified by:
setHelmet
in interfaceArmorStand
-
getItemInHand
Deprecated.- Specified by:
getItemInHand
in interfaceArmorStand
-
setItemInHand
Deprecated.- Specified by:
setItemInHand
in interfaceArmorStand
-
getBodyPose
- Specified by:
getBodyPose
in interfaceArmorStand
-
setBodyPose
- Specified by:
setBodyPose
in interfaceArmorStand
-
getLeftArmPose
- Specified by:
getLeftArmPose
in interfaceArmorStand
-
setLeftArmPose
- Specified by:
setLeftArmPose
in interfaceArmorStand
-
getRightArmPose
- Specified by:
getRightArmPose
in interfaceArmorStand
-
setRightArmPose
- Specified by:
setRightArmPose
in interfaceArmorStand
-
getLeftLegPose
- Specified by:
getLeftLegPose
in interfaceArmorStand
-
setLeftLegPose
- Specified by:
setLeftLegPose
in interfaceArmorStand
-
getRightLegPose
- Specified by:
getRightLegPose
in interfaceArmorStand
-
setRightLegPose
- Specified by:
setRightLegPose
in interfaceArmorStand
-
getHeadPose
- Specified by:
getHeadPose
in interfaceArmorStand
-
setHeadPose
- Specified by:
setHeadPose
in interfaceArmorStand
-
hasBasePlate
public boolean hasBasePlate()- Specified by:
hasBasePlate
in interfaceArmorStand
-
setBasePlate
public void setBasePlate(boolean basePlate) - Specified by:
setBasePlate
in interfaceArmorStand
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfaceArmorStand
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceArmorStand
-
hasArms
public boolean hasArms()- Specified by:
hasArms
in interfaceArmorStand
-
setArms
public void setArms(boolean arms) - Specified by:
setArms
in interfaceArmorStand
-
isSmall
public boolean isSmall()- Specified by:
isSmall
in interfaceArmorStand
-
setSmall
public void setSmall(boolean small) - Specified by:
setSmall
in interfaceArmorStand
-
isMarker
public boolean isMarker()- Specified by:
isMarker
in interfaceArmorStand
-
setMarker
public void setMarker(boolean marker) - Specified by:
setMarker
in interfaceArmorStand
-
addEquipmentLock
public void addEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType) - Specified by:
addEquipmentLock
in interfaceArmorStand
-
removeEquipmentLock
public void removeEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType) - Specified by:
removeEquipmentLock
in interfaceArmorStand
-
hasEquipmentLock
public boolean hasEquipmentLock(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ArmorStand.LockType lockType) - Specified by:
hasEquipmentLock
in interfaceArmorStand
-
canMove
public boolean canMove()- Specified by:
canMove
in interfaceArmorStand
-
setCanMove
public void setCanMove(boolean move) - Specified by:
setCanMove
in interfaceArmorStand
-
canTick
public boolean canTick()- Specified by:
canTick
in interfaceArmorStand
-
setCanTick
public void setCanTick(boolean tick) - Specified by:
setCanTick
in interfaceArmorStand
-
getItem
- Specified by:
getItem
in interfaceArmorStand
-
setItem
- Specified by:
setItem
in interfaceArmorStand
-
getDisabledSlots
- Specified by:
getDisabledSlots
in interfaceArmorStand
-
setDisabledSlots
- Specified by:
setDisabledSlots
in interfaceArmorStand
-
addDisabledSlots
- Specified by:
addDisabledSlots
in interfaceArmorStand
-
removeDisabledSlots
- Specified by:
removeDisabledSlots
in interfaceArmorStand
-
isSlotDisabled
- Specified by:
isSlotDisabled
in interfaceArmorStand
-
getBodyRotations
- Specified by:
getBodyRotations
in interfaceArmorStand
-
setBodyRotations
- Specified by:
setBodyRotations
in interfaceArmorStand
-
getLeftArmRotations
- Specified by:
getLeftArmRotations
in interfaceArmorStand
-
setLeftArmRotations
- Specified by:
setLeftArmRotations
in interfaceArmorStand
-
getRightArmRotations
- Specified by:
getRightArmRotations
in interfaceArmorStand
-
setRightArmRotations
- Specified by:
setRightArmRotations
in interfaceArmorStand
-
getLeftLegRotations
- Specified by:
getLeftLegRotations
in interfaceArmorStand
-
setLeftLegRotations
- Specified by:
setLeftLegRotations
in interfaceArmorStand
-
getRightLegRotations
- Specified by:
getRightLegRotations
in interfaceArmorStand
-
setRightLegRotations
- Specified by:
setRightLegRotations
in interfaceArmorStand
-
getHeadRotations
- Specified by:
getHeadRotations
in interfaceArmorStand
-
setHeadRotations
- Specified by:
setHeadRotations
in interfaceArmorStand
-