public class ArmorStandEntity extends LivingEntity
Entity.PositionUpdateractiveItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeedage, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawDUMMY| Constructor and Description |
|---|
ArmorStandEntity(EntityType<? extends ArmorStandEntity> type,
World world) |
ArmorStandEntity(World world,
double x,
double y,
double z) |
addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, baseTick, canBeRiddenInWater, canBreatheInWater, canDropLootAndXp, canHaveStatusEffect, canSee, canTarget, canTarget, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createSpawnPacket, damageArmor, damageShield, deserializeBrain, destroy, displaySoulSpeedEffects, drop, dropEquipment, dropInventory, dropLoot, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getArrowType, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getBrain, getClimbingPos, getCurrentExperience, getDamageTracker, getDespawnCounter, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getLootContextBuilder, getLootTable, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPoses, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAlive, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isOnSoulSpeedBlock, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_29242, method_29499, method_29500, method_29920, method_30633, method_31079, onAttacking, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playHurtSound, pushAwayFrom, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldRenderName, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swimUpward, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickHandSwing, tickMovement, tickNewAi, tickRiding, tickRiptide, tickStatusEffects, tryAttack, updatePostDeath, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUpaddPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, applyMirror, applyRotation, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canClimb, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, isAttackable, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29239, method_29241, method_29919, method_30076, method_30330, method_30632, method_30634, method_30950, method_30951, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setInNetherPortal, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollideprivate static final EulerAngle DEFAULT_HEAD_ROTATION
private static final EulerAngle DEFAULT_BODY_ROTATION
private static final EulerAngle DEFAULT_LEFT_ARM_ROTATION
private static final EulerAngle DEFAULT_RIGHT_ARM_ROTATION
private static final EulerAngle DEFAULT_LEFT_LEG_ROTATION
private static final EulerAngle DEFAULT_RIGHT_LEG_ROTATION
private static final EntityDimensions field_26745
private static final EntityDimensions field_26746
public static final TrackedData<Byte> ARMOR_STAND_FLAGS
public static final TrackedData<EulerAngle> TRACKER_HEAD_ROTATION
public static final TrackedData<EulerAngle> TRACKER_BODY_ROTATION
public static final TrackedData<EulerAngle> TRACKER_LEFT_ARM_ROTATION
public static final TrackedData<EulerAngle> TRACKER_RIGHT_ARM_ROTATION
public static final TrackedData<EulerAngle> TRACKER_LEFT_LEG_ROTATION
public static final TrackedData<EulerAngle> TRACKER_RIGHT_LEG_ROTATION
private final DefaultedList<ItemStack> heldItems
private final DefaultedList<ItemStack> armorItems
private boolean invisible
public long lastHitTime
private int disabledSlots
private EulerAngle headRotation
private EulerAngle bodyRotation
private EulerAngle leftArmRotation
private EulerAngle rightArmRotation
private EulerAngle leftLegRotation
private EulerAngle rightLegRotation
public ArmorStandEntity(EntityType<? extends ArmorStandEntity> type, World world)
public ArmorStandEntity(World world, double x, double y, double z)
public void calculateDimensions()
calculateDimensions in class Entityprivate boolean canClip()
public boolean canMoveVoluntarily()
canMoveVoluntarily in class LivingEntityprotected void initDataTracker()
initDataTracker in class LivingEntitypublic Iterable<ItemStack> getItemsHand()
getItemsHand in class Entitypublic Iterable<ItemStack> getArmorItems()
getArmorItems in class LivingEntitypublic ItemStack getEquippedStack(EquipmentSlot slot)
getEquippedStack in class LivingEntitypublic void equipStack(EquipmentSlot slot, ItemStack stack)
equipStack in class LivingEntitypublic boolean canEquip(ItemStack stack)
canEquip in class LivingEntitypublic void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag in class LivingEntitypublic void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag in class LivingEntityprivate void deserializePose(CompoundTag compoundTag)
private CompoundTag serializePose()
public boolean isPushable()
isPushable in class LivingEntityprotected void pushAway(Entity entity)
pushAway in class LivingEntityprotected void tickCramming()
tickCramming in class LivingEntitypublic ActionResult interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
interactAt in class Entityprivate EquipmentSlot slotFromPosition(Vec3d vec3d)
private boolean isSlotDisabled(EquipmentSlot slot)
private boolean equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)
public boolean damage(DamageSource source, float amount)
damage in class LivingEntity@Environment(value=CLIENT) public void handleStatus(byte status)
handleStatus in class LivingEntity@Environment(value=CLIENT) public boolean shouldRender(double distance)
shouldRender in class Entityprivate void spawnBreakParticles()
private void updateHealth(DamageSource damageSource, float amount)
private void breakAndDropItem(DamageSource damageSource)
private void onBreak(DamageSource damageSource)
private void playBreakSound()
protected float turnHead(float bodyRotation,
float headRotation)
turnHead in class LivingEntityprotected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
getActiveEyeHeight in class LivingEntitypublic double getHeightOffset()
getHeightOffset in class Entitypublic void travel(Vec3d movementInput)
travel in class LivingEntitypublic void setYaw(float yaw)
setYaw in class LivingEntitypublic void setHeadYaw(float headYaw)
setHeadYaw in class LivingEntitypublic void tick()
tick in class LivingEntityprotected void updatePotionVisibility()
updatePotionVisibility in class LivingEntitypublic void setInvisible(boolean invisible)
setInvisible in class Entitypublic boolean isBaby()
isBaby in class LivingEntitypublic void kill()
kill in class LivingEntitypublic boolean isImmuneToExplosion()
isImmuneToExplosion in class Entitypublic PistonBehavior getPistonBehavior()
getPistonBehavior in class Entityprivate void setSmall(boolean small)
public boolean isSmall()
private void setShowArms(boolean showArms)
public boolean shouldShowArms()
private void setHideBasePlate(boolean hideBasePlate)
public boolean shouldHideBasePlate()
private void setMarker(boolean marker)
public boolean isMarker()
private byte setBitField(byte value,
int bitField,
boolean set)
public void setHeadRotation(EulerAngle eulerAngle)
public void setBodyRotation(EulerAngle eulerAngle)
public void setLeftArmRotation(EulerAngle eulerAngle)
public void setRightArmRotation(EulerAngle eulerAngle)
public void setLeftLegRotation(EulerAngle eulerAngle)
public void setRightLegRotation(EulerAngle eulerAngle)
public EulerAngle getHeadRotation()
public EulerAngle getBodyRotation()
@Environment(value=CLIENT) public EulerAngle getLeftArmRotation()
@Environment(value=CLIENT) public EulerAngle getRightArmRotation()
@Environment(value=CLIENT) public EulerAngle getLeftLegRotation()
@Environment(value=CLIENT) public EulerAngle getRightLegRotation()
public boolean collides()
collides in class LivingEntitypublic boolean handleAttack(Entity attacker)
handleAttack in class Entitypublic Arm getMainArm()
getMainArm in class LivingEntityprotected SoundEvent getFallSound(int distance)
getFallSound in class LivingEntity@Nullable protected SoundEvent getHurtSound(DamageSource source)
getHurtSound in class LivingEntity@Nullable protected SoundEvent getDeathSound()
getDeathSound in class LivingEntitypublic void onStruckByLightning(ServerWorld world, LightningEntity lightning)
onStruckByLightning in class Entitypublic boolean isAffectedBySplashPotions()
isAffectedBySplashPotions in class LivingEntitypublic void onTrackedDataSet(TrackedData<?> data)
onTrackedDataSet in class LivingEntitypublic boolean isMobOrPlayer()
isMobOrPlayer in class LivingEntitypublic EntityDimensions getDimensions(EntityPose pose)
getDimensions in class LivingEntityprivate EntityDimensions method_31168(boolean bool)
@Environment(value=CLIENT) public Vec3d method_31166(float tickDelta)
method_31166 in class Entity