Class ArmorStand
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.decoration.ArmorStand
- All Implemented Interfaces:
CommandSource
,SyncedDataHolder
,Attackable
,EntityAccess
,Nameable
,ScoreHolder
,IAttachmentHolder
,IEntityExtension
,ILivingEntityExtension
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NonNullList
<ItemStack> private static final EntityDimensions
private Rotations
private static final double
static final int
static final int
static final int
static final int
static final EntityDataAccessor
<Rotations> static final EntityDataAccessor
<Byte> static final EntityDataAccessor
<Rotations> static final EntityDataAccessor
<Rotations> static final EntityDataAccessor
<Rotations> static final EntityDataAccessor
<Rotations> static final EntityDataAccessor
<Rotations> private static final Rotations
private static final Rotations
private static final Rotations
private static final Rotations
private static final Rotations
private static final Rotations
static final int
static final int
private int
private static final boolean
private static final double
private final NonNullList
<ItemStack> private static final double
private Rotations
private boolean
long
After punching the stand, the cooldown before you can punch it again without breaking it.private Rotations
private Rotations
private static final double
private static final EntityDimensions
private Rotations
private Rotations
static final int
Fields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
Fields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionArmorStand
(EntityType<? extends ArmorStand> entityType, Level level) ArmorStand
(Level level, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundTag compound) boolean
private void
brokenByAnything
(ServerLevel level, DamageSource damageSource) private void
brokenByPlayer
(ServerLevel level, DamageSource damageSource) boolean
boolean
canTakeItem
(ItemStack itemstack) boolean
canUseSlot
(EquipmentSlot slot) private void
causeDamage
(ServerLevel level, DamageSource damageSource, float damageAmount) static AttributeSupplier.Builder
protected void
protected void
private EquipmentSlot
getClickedSlot
(Vec3 vector) protected SoundEvent
getDefaultDimensions
(Pose pose) private EntityDimensions
getDimensionsMarker
(boolean isMarker) protected SoundEvent
getHurtSound
(DamageSource damageSource) getItemBySlot
(EquipmentSlot slot) getLightProbePosition
(float partialTicks) void
handleEntityEvent
(byte id) Handler forinvalid reference
World#setEntityState
private boolean
boolean
hurt
(DamageSource source, float amount) Called when the entity is attacked.boolean
ignoreExplosion
(Explosion explosion) interactAt
(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.boolean
boolean
isBaby()
private boolean
isDisabled
(EquipmentSlot slot) boolean
boolean
boolean
isMarker()
boolean
boolean
boolean
boolean
boolean
isSmall()
void
kill()
void
private void
protected void
void
readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.private void
readPose
(CompoundTag compound) void
private byte
setBit
(byte oldBit, int offset, boolean value) void
setBodyPose
(Rotations bodyPose) void
setHeadPose
(Rotations headPose) void
setInvisible
(boolean invisible) void
setItemSlot
(EquipmentSlot slot, ItemStack stack) void
setLeftArmPose
(Rotations leftArmPose) void
setLeftLegPose
(Rotations leftLegPose) private void
setMarker
(boolean marker) Marker defines where if true, the size is 0 and will not be rendered or intractable.void
setNoBasePlate
(boolean noBasePlate) void
setRightArmPose
(Rotations rightArmPose) void
setRightLegPose
(Rotations rightLegPose) void
setShowArms
(boolean showArms) private void
setSmall
(boolean small) void
setYBodyRot
(float offset) Set the body Y rotation of the entity.void
setYHeadRot
(float rotation) Sets the head's Y rotation of the entity.boolean
shouldRenderAtSqrDistance
(double distance) Checks if the entity is in range to render.private void
boolean
skipAttackInteraction
(Entity entity) Called when a player attacks an entity.private boolean
swapItem
(Player player, EquipmentSlot slot, ItemStack stack, InteractionHand hand) void
thunderHit
(ServerLevel level, LightningBolt lightning) void
tick()
protected float
tickHeadTurn
(float yRot, float animStep) void
protected void
private CompoundTag
Methods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, actuallyHurt, addEffect, addEffect, aiStep, animateHurt, areAllEffectsAmbient, baseTick, blockedByShield, blockUsingShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenAsEnemy, canBreatheUnderwater, canDisableShield, canFreeze, canStandOnFluid, canUsePortal, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doHurtTarget, dropAllDeathLoot, dropCustomDeathLoot, dropEquipment, dropExperience, dropFromLootTable, eat, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBaseExperienceReward, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSlotForHand, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, playHurtSound, push, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeEffectsCuredBy, removeFrost, resetForwardDirectionOfRelativePortalPosition, rideTick, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldShowName, skipDropExperience, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, triggerItemUseEffects, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, interact, is, isAddedToLevel, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, serializeNBT, shouldRiderSit
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluid
Methods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
WOBBLE_TIME
public static final int WOBBLE_TIME- See Also:
-
ENABLE_ARMS
private static final boolean ENABLE_ARMS- See Also:
-
DEFAULT_HEAD_POSE
-
DEFAULT_BODY_POSE
-
DEFAULT_LEFT_ARM_POSE
-
DEFAULT_RIGHT_ARM_POSE
-
DEFAULT_LEFT_LEG_POSE
-
DEFAULT_RIGHT_LEG_POSE
-
MARKER_DIMENSIONS
-
BABY_DIMENSIONS
-
FEET_OFFSET
private static final double FEET_OFFSET- See Also:
-
CHEST_OFFSET
private static final double CHEST_OFFSET- See Also:
-
LEGS_OFFSET
private static final double LEGS_OFFSET- See Also:
-
HEAD_OFFSET
private static final double HEAD_OFFSET- See Also:
-
DISABLE_TAKING_OFFSET
public static final int DISABLE_TAKING_OFFSET- See Also:
-
DISABLE_PUTTING_OFFSET
public static final int DISABLE_PUTTING_OFFSET- See Also:
-
CLIENT_FLAG_SMALL
public static final int CLIENT_FLAG_SMALL- See Also:
-
CLIENT_FLAG_SHOW_ARMS
public static final int CLIENT_FLAG_SHOW_ARMS- See Also:
-
CLIENT_FLAG_NO_BASEPLATE
public static final int CLIENT_FLAG_NO_BASEPLATE- See Also:
-
CLIENT_FLAG_MARKER
public static final int CLIENT_FLAG_MARKER- See Also:
-
DATA_CLIENT_FLAGS
-
DATA_HEAD_POSE
-
DATA_BODY_POSE
-
DATA_LEFT_ARM_POSE
-
DATA_RIGHT_ARM_POSE
-
DATA_LEFT_LEG_POSE
-
DATA_RIGHT_LEG_POSE
-
RIDABLE_MINECARTS
-
handItems
-
armorItems
-
invisible
private boolean invisible -
lastHit
public long lastHitAfter punching the stand, the cooldown before you can punch it again without breaking it. -
disabledSlots
private int disabledSlots -
headPose
-
bodyPose
-
leftArmPose
-
rightArmPose
-
leftLegPose
-
rightLegPose
-
-
Constructor Details
-
ArmorStand
-
ArmorStand
-
-
Method Details
-
createAttributes
-
refreshDimensions
public void refreshDimensions()- Overrides:
refreshDimensions
in classEntity
-
hasPhysics
private boolean hasPhysics() -
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAi
in classEntity
-
defineSynchedData
- Overrides:
defineSynchedData
in classLivingEntity
-
getHandSlots
- Overrides:
getHandSlots
in classLivingEntity
-
getArmorSlots
- Specified by:
getArmorSlots
in classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlot
in classLivingEntity
-
canUseSlot
- Overrides:
canUseSlot
in classLivingEntity
-
setItemSlot
- Specified by:
setItemSlot
in classLivingEntity
-
canTakeItem
- Overrides:
canTakeItem
in classLivingEntity
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classLivingEntity
-
readAdditionalSaveData
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readAdditionalSaveData
in classLivingEntity
-
readPose
-
writePose
-
isPushable
public boolean isPushable()- Overrides:
isPushable
in classLivingEntity
-
doPush
- Overrides:
doPush
in classLivingEntity
-
pushEntities
protected void pushEntities()- Overrides:
pushEntities
in classLivingEntity
-
interactAt
Applies the given player interaction to this Entity.- Overrides:
interactAt
in classEntity
-
getClickedSlot
-
isDisabled
-
swapItem
-
hurt
Called when the entity is attacked.- Overrides:
hurt
in classLivingEntity
-
handleEntityEvent
public void handleEntityEvent(byte id) Handler forinvalid reference
World#setEntityState
- Overrides:
handleEntityEvent
in classLivingEntity
-
shouldRenderAtSqrDistance
public boolean shouldRenderAtSqrDistance(double distance) Checks if the entity is in range to render.- Overrides:
shouldRenderAtSqrDistance
in classEntity
-
showBreakingParticles
private void showBreakingParticles() -
causeDamage
-
brokenByPlayer
-
brokenByAnything
-
playBrokenSound
private void playBrokenSound() -
tickHeadTurn
protected float tickHeadTurn(float yRot, float animStep) - Overrides:
tickHeadTurn
in classLivingEntity
-
travel
- Overrides:
travel
in classLivingEntity
-
setYBodyRot
public void setYBodyRot(float offset) Set the body Y rotation of the entity.- Overrides:
setYBodyRot
in classLivingEntity
-
setYHeadRot
public void setYHeadRot(float rotation) Sets the head's Y rotation of the entity.- Overrides:
setYHeadRot
in classLivingEntity
-
tick
public void tick()- Overrides:
tick
in classLivingEntity
-
updateInvisibilityStatus
protected void updateInvisibilityStatus()- Overrides:
updateInvisibilityStatus
in classLivingEntity
-
setInvisible
public void setInvisible(boolean invisible) - Overrides:
setInvisible
in classEntity
-
isBaby
public boolean isBaby()- Overrides:
isBaby
in classLivingEntity
-
kill
public void kill()- Overrides:
kill
in classLivingEntity
-
ignoreExplosion
- Overrides:
ignoreExplosion
in classEntity
-
getPistonPushReaction
- Overrides:
getPistonPushReaction
in classEntity
-
isIgnoringBlockTriggers
public boolean isIgnoringBlockTriggers()- Overrides:
isIgnoringBlockTriggers
in classEntity
-
setSmall
private void setSmall(boolean small) -
isSmall
public boolean isSmall() -
setShowArms
public void setShowArms(boolean showArms) -
isShowArms
public boolean isShowArms() -
setNoBasePlate
public void setNoBasePlate(boolean noBasePlate) -
isNoBasePlate
public boolean isNoBasePlate() -
setMarker
private void setMarker(boolean marker) Marker defines where if true, the size is 0 and will not be rendered or intractable. -
isMarker
public boolean isMarker() -
setBit
private byte setBit(byte oldBit, int offset, boolean value) -
setHeadPose
-
setBodyPose
-
setLeftArmPose
-
setRightArmPose
-
setLeftLegPose
-
setRightLegPose
-
getHeadPose
-
getBodyPose
-
getLeftArmPose
-
getRightArmPose
-
getLeftLegPose
-
getRightLegPose
-
isPickable
public boolean isPickable()- Overrides:
isPickable
in classLivingEntity
-
skipAttackInteraction
Called when a player attacks an entity. If this returns true the attack will not happen.- Overrides:
skipAttackInteraction
in classEntity
-
getMainArm
- Specified by:
getMainArm
in classLivingEntity
-
getFallSounds
- Overrides:
getFallSounds
in classLivingEntity
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
thunderHit
- Overrides:
thunderHit
in classEntity
-
isAffectedByPotions
public boolean isAffectedByPotions()- Overrides:
isAffectedByPotions
in classLivingEntity
-
onSyncedDataUpdated
- Specified by:
onSyncedDataUpdated
in interfaceSyncedDataHolder
- Overrides:
onSyncedDataUpdated
in classLivingEntity
-
attackable
public boolean attackable()- Overrides:
attackable
in classLivingEntity
-
getDefaultDimensions
- Overrides:
getDefaultDimensions
in classLivingEntity
-
getDimensionsMarker
-
getLightProbePosition
- Overrides:
getLightProbePosition
in classEntity
-
getPickResult
- Overrides:
getPickResult
in classEntity
-
canBeSeenByAnyone
public boolean canBeSeenByAnyone()- Overrides:
canBeSeenByAnyone
in classLivingEntity
-