public class EntityArmorStand extends EntityLivingBase
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world
Constructor and Description |
---|
EntityArmorStand(World worldIn) |
EntityArmorStand(World worldIn,
double posX,
double posY,
double posZ) |
addPotionEffect, applyArmorCalculations, applyEntityAttributes, applyPotionDamageCalculations, areAllPotionsAmbient, attackEntityAsMob, attemptTeleport, blockUsingShield, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, dropEquipment, dropFewItems, dropLoot, fall, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getEntityAttribute, getExperiencePoints, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, onChangedPotionEffect, onDeath, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onLivingUpdate, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRevengeTarget, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, updateActiveHand, updateArmSwingProgress, updateEntityActionState, updateFallState, updateItemUse, updatePotionEffects, updateRidden
addEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, changeDimension, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToFire, isInLava, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onInsideBlock, onKillEntity, onRemovedFromWorld, playFlySound, playSound, playStepSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptional
private static final Rotations DEFAULT_HEAD_ROTATION
private static final Rotations DEFAULT_BODY_ROTATION
private static final Rotations DEFAULT_LEFTARM_ROTATION
private static final Rotations DEFAULT_RIGHTARM_ROTATION
private static final Rotations DEFAULT_LEFTLEG_ROTATION
private static final Rotations DEFAULT_RIGHTLEG_ROTATION
public static final DataParameter<java.lang.Byte> STATUS
public static final DataParameter<Rotations> HEAD_ROTATION
public static final DataParameter<Rotations> BODY_ROTATION
public static final DataParameter<Rotations> LEFT_ARM_ROTATION
public static final DataParameter<Rotations> RIGHT_ARM_ROTATION
public static final DataParameter<Rotations> LEFT_LEG_ROTATION
public static final DataParameter<Rotations> RIGHT_LEG_ROTATION
private static final com.google.common.base.Predicate<Entity> IS_RIDEABLE_MINECART
private final NonNullList<ItemStack> handItems
private final NonNullList<ItemStack> armorItems
private boolean canInteract
public long punchCooldown
private int disabledSlots
private boolean wasMarker
private Rotations headRotation
private Rotations bodyRotation
private Rotations leftArmRotation
private Rotations rightArmRotation
private Rotations leftLegRotation
private Rotations rightLegRotation
public EntityArmorStand(World worldIn)
public EntityArmorStand(World worldIn, double posX, double posY, double posZ)
public boolean isServerWorld()
isServerWorld
in class EntityLivingBase
protected void entityInit()
entityInit
in class EntityLivingBase
public java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment
in class Entity
public java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
in class EntityLivingBase
public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn)
getItemStackFromSlot
in class EntityLivingBase
public void setItemStackToSlot(EntityEquipmentSlot slotIn, ItemStack stack)
setItemStackToSlot
in class EntityLivingBase
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
replaceItemInInventory
in class Entity
public static void registerFixesArmorStand(DataFixer fixer)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityLivingBase
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityLivingBase
private void writePoseToNBT(NBTTagCompound tagCompound)
private NBTTagCompound readPoseFromNBT()
public boolean canBePushed()
canBePushed
in class EntityLivingBase
protected void collideWithEntity(Entity entityIn)
collideWithEntity
in class EntityLivingBase
protected void collideWithNearbyEntities()
collideWithNearbyEntities
in class EntityLivingBase
public EnumActionResult applyPlayerInteraction(EntityPlayer player, Vec3d vec, EnumHand hand)
applyPlayerInteraction
in class Entity
protected EntityEquipmentSlot getClickedSlot(Vec3d p_190772_1_)
private boolean isDisabled(EntityEquipmentSlot slotIn)
private void swapItem(EntityPlayer player, EntityEquipmentSlot p_184795_2_, ItemStack p_184795_3_, EnumHand hand)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityLivingBase
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class EntityLivingBase
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
private void playParticles()
private void damageArmorStand(float damage)
private void dropBlock()
private void dropContents()
private void playBrokenSound()
protected float updateDistance(float p_110146_1_, float p_110146_2_)
updateDistance
in class EntityLivingBase
public float getEyeHeight()
getEyeHeight
in class Entity
public double getYOffset()
getYOffset
in class Entity
public void travel(float strafe, float vertical, float forward)
travel
in class EntityLivingBase
public void setRenderYawOffset(float offset)
setRenderYawOffset
in class EntityLivingBase
public void setRotationYawHead(float rotation)
setRotationYawHead
in class EntityLivingBase
public void onUpdate()
onUpdate
in class EntityLivingBase
private void updateBoundingBox(boolean p_181550_1_)
protected void updatePotionMetadata()
updatePotionMetadata
in class EntityLivingBase
public void setInvisible(boolean invisible)
setInvisible
in class Entity
public boolean isChild()
isChild
in class EntityLivingBase
public void onKillCommand()
onKillCommand
in class EntityLivingBase
public boolean isImmuneToExplosions()
isImmuneToExplosions
in class Entity
public EnumPushReaction getPushReaction()
getPushReaction
in class Entity
private void setSmall(boolean small)
public boolean isSmall()
private void setShowArms(boolean showArms)
public boolean getShowArms()
private void setNoBasePlate(boolean noBasePlate)
public boolean hasNoBasePlate()
private void setMarker(boolean marker)
public boolean hasMarker()
private byte setBit(byte p_184797_1_, int p_184797_2_, boolean p_184797_3_)
public void setHeadRotation(Rotations vec)
public void setBodyRotation(Rotations vec)
public void setLeftArmRotation(Rotations vec)
public void setRightArmRotation(Rotations vec)
public void setLeftLegRotation(Rotations vec)
public void setRightLegRotation(Rotations vec)
public Rotations getHeadRotation()
public Rotations getBodyRotation()
public Rotations getLeftArmRotation()
public Rotations getRightArmRotation()
public Rotations getLeftLegRotation()
public Rotations getRightLegRotation()
public boolean canBeCollidedWith()
canBeCollidedWith
in class EntityLivingBase
public EnumHandSide getPrimaryHand()
getPrimaryHand
in class EntityLivingBase
protected SoundEvent getFallSound(int heightIn)
getFallSound
in class EntityLivingBase
@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
in class EntityLivingBase
@Nullable protected SoundEvent getDeathSound()
getDeathSound
in class EntityLivingBase
public void onStruckByLightning(EntityLightningBolt lightningBolt)
onStruckByLightning
in class Entity
public boolean canBeHitWithPotion()
canBeHitWithPotion
in class EntityLivingBase
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange
in class EntityLivingBase
public boolean attackable()
attackable
in class EntityLivingBase