public class ArmorStandEntity extends LivingEntity
Entity.PositionUpdater
activeItemStack, 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, upwardSpeed
age, 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, yaw
DUMMY
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, wakeUp
addPassenger, 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, wouldPoseNotCollide
private 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 Entity
private boolean canClip()
public boolean canMoveVoluntarily()
canMoveVoluntarily
in class LivingEntity
protected void initDataTracker()
initDataTracker
in class LivingEntity
public Iterable<ItemStack> getItemsHand()
getItemsHand
in class Entity
public Iterable<ItemStack> getArmorItems()
getArmorItems
in class LivingEntity
public ItemStack getEquippedStack(EquipmentSlot slot)
getEquippedStack
in class LivingEntity
public void equipStack(EquipmentSlot slot, ItemStack stack)
equipStack
in class LivingEntity
public boolean canEquip(ItemStack stack)
canEquip
in class LivingEntity
public void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag
in class LivingEntity
public void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag
in class LivingEntity
private void deserializePose(CompoundTag compoundTag)
private CompoundTag serializePose()
public boolean isPushable()
isPushable
in class LivingEntity
protected void pushAway(Entity entity)
pushAway
in class LivingEntity
protected void tickCramming()
tickCramming
in class LivingEntity
public ActionResult interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
interactAt
in class Entity
private 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 Entity
private 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 LivingEntity
protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
getActiveEyeHeight
in class LivingEntity
public double getHeightOffset()
getHeightOffset
in class Entity
public void travel(Vec3d movementInput)
travel
in class LivingEntity
public void setYaw(float yaw)
setYaw
in class LivingEntity
public void setHeadYaw(float headYaw)
setHeadYaw
in class LivingEntity
public void tick()
tick
in class LivingEntity
protected void updatePotionVisibility()
updatePotionVisibility
in class LivingEntity
public void setInvisible(boolean invisible)
setInvisible
in class Entity
public boolean isBaby()
isBaby
in class LivingEntity
public void kill()
kill
in class LivingEntity
public boolean isImmuneToExplosion()
isImmuneToExplosion
in class Entity
public PistonBehavior getPistonBehavior()
getPistonBehavior
in class Entity
private 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 LivingEntity
public boolean handleAttack(Entity attacker)
handleAttack
in class Entity
public Arm getMainArm()
getMainArm
in class LivingEntity
protected 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 LivingEntity
public void onStruckByLightning(ServerWorld world, LightningEntity lightning)
onStruckByLightning
in class Entity
public boolean isAffectedBySplashPotions()
isAffectedBySplashPotions
in class LivingEntity
public void onTrackedDataSet(TrackedData<?> data)
onTrackedDataSet
in class LivingEntity
public boolean isMobOrPlayer()
isMobOrPlayer
in class LivingEntity
public EntityDimensions getDimensions(EntityPose pose)
getDimensions
in class LivingEntity
private EntityDimensions method_31168(boolean bool)
@Environment(value=CLIENT) public Vec3d method_31166(float tickDelta)
method_31166
in class Entity